68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
services:
|
|
server:
|
|
container_name: continuity-auth
|
|
image: continuity-auth:latest
|
|
restart: always
|
|
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/
|
|
- Tracing:Enabled=true
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://aspire:18889
|
|
- Logging:LogLevel:Default=Debug
|
|
networks:
|
|
- continuity
|
|
ports:
|
|
- 10001:10001
|
|
volumes:
|
|
- type: bind
|
|
source: wk-data
|
|
target: /app/data
|
|
read_only: true
|
|
- type: bind
|
|
source: config
|
|
target: /app/config
|
|
read_only: true
|
|
mem_limit: 1024m
|
|
|
|
db:
|
|
container_name: continuity-db
|
|
image: postgres:16.1-alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=continuity
|
|
- POSTGRES_DB=continuity
|
|
- POSTGRES_PASSWORD=continuity
|
|
networks:
|
|
- continuity
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [CMD-SHELL, 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
mem_limit: 1024m
|
|
|
|
aspire:
|
|
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0.0
|
|
networks:
|
|
- continuity
|
|
environment:
|
|
- DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true
|
|
- Dashboard:Frontend:AuthMode=Unsecured
|
|
ports:
|
|
- 18888:18888
|
|
|
|
networks:
|
|
continuity:
|
|
|
|
volumes:
|
|
db-data:
|
|
server-logs:
|