Timothy Schenk
497d415fb6
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 28s
Build, Package and Push Images / sonarqube (push) Has been skipped
Build, Package and Push Images / sbom-scan (push) Successful in 33s
Build, Package and Push Images / container-build (push) Successful in 1m23s
Build, Package and Push Images / container-sbom-scan (push) Successful in 32s
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
services:
|
|
server:
|
|
container_name: continuity-server
|
|
image: server:latest
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- ENVIRONMENT=Development
|
|
- Testing:CreateAccountOnLogin=true
|
|
- DB:Host=db
|
|
- DB:Port=5432
|
|
- DB:Username=continuity
|
|
- DB:Password=continuity
|
|
- Game:Data:Path=/app/data
|
|
networks:
|
|
- continuity
|
|
ports:
|
|
- "10001:10001"
|
|
volumes:
|
|
- type: bind
|
|
source: game-data
|
|
target: /app/data
|
|
read_only: true
|
|
|
|
db:
|
|
container_name: continuity-db
|
|
image: postgres:16.0-alpine
|
|
environment:
|
|
- POSTGRES_USER=continuity
|
|
- POSTGRES_DB=continuity
|
|
- POSTGRES_PASSWORD=continuity
|
|
networks:
|
|
- continuity
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'" ]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
|
|
networks:
|
|
continuity:
|
|
volumes:
|
|
db-data:
|
|
|
|
game-data:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
device: ../wk-data
|
|
o: bind
|