126 lines
2.4 KiB
YAML
126 lines
2.4 KiB
YAML
version: '2.4'
|
|
|
|
x-platforms:
|
|
- os: linux
|
|
arch: amd64
|
|
- os: linux
|
|
arch: arm64
|
|
|
|
volumes:
|
|
c4po-db:
|
|
|
|
services:
|
|
# Database
|
|
c4po-db:
|
|
build:
|
|
context: 'c4po-db'
|
|
x-bake:
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
image: mongo:5.0.0-focal
|
|
container_name: c4po-db
|
|
labels:
|
|
name: "c4po-db"
|
|
volumes:
|
|
- ./volumes/mongodb/data/:/db/data
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: "2G"
|
|
ports:
|
|
- 27017:27017
|
|
networks:
|
|
- c4po
|
|
# Authentication Provider
|
|
c4po-keycloak:
|
|
build:
|
|
context: 'c4po-keycloak'
|
|
x-bake:
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
container_name: c4po-keycloak
|
|
labels:
|
|
name: "c4po-keycloak"
|
|
image: quay.io/keycloak/keycloak:20.0.0
|
|
ports:
|
|
- 8080:8080
|
|
networks:
|
|
- c4po
|
|
# Services
|
|
c4po-angular:
|
|
build:
|
|
context: '../security-c4po-angular'
|
|
x-bake:
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
#build: '../security-c4po-angular'
|
|
image: security-c4po-angular:latest
|
|
container_name: c4po-angular
|
|
labels:
|
|
name: "c4po-angular"
|
|
depends_on:
|
|
- c4po-keycloak
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: "2G"
|
|
ports:
|
|
- 4200:4200
|
|
networks:
|
|
- c4po
|
|
c4po-api:
|
|
build:
|
|
context: '../security-c4po-api'
|
|
x-bake:
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
#build: '../security-c4po-api'
|
|
image: security-c4po-api:latest
|
|
container_name: c4po-api
|
|
labels:
|
|
name: "c4po-api"
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=COMPOSE
|
|
depends_on:
|
|
- c4po-db
|
|
- c4po-keycloak
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: "2G"
|
|
ports:
|
|
- 8443:8443
|
|
networks:
|
|
- c4po
|
|
c4po-reporting:
|
|
build:
|
|
context: '../security-c4po-reporting'
|
|
x-bake:
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
#build: '../security-c4po-reporting'
|
|
image: security-c4po-reporting:latest
|
|
container_name: c4po-reporting
|
|
labels:
|
|
name: "c4po-reporting"
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=COMPOSE
|
|
depends_on:
|
|
- c4po-keycloak
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: "4G"
|
|
ports:
|
|
- 8444:8444
|
|
networks:
|
|
- c4po
|
|
|
|
networks:
|
|
c4po:
|