2023-11-16 17:48:29 +00:00
|
|
|
services:
|
2023-10-09 13:29:53 +00:00
|
|
|
server:
|
2023-10-27 17:47:17 +00:00
|
|
|
container_name: continuity-server
|
2023-11-12 14:27:59 +00:00
|
|
|
image: continuity:latest
|
|
|
|
restart: always
|
2023-10-27 17:47:17 +00:00
|
|
|
depends_on:
|
2023-11-19 19:20:16 +00:00
|
|
|
- db
|
2023-10-09 13:29:53 +00:00
|
|
|
environment:
|
2023-11-19 19:20:16 +00:00
|
|
|
- ENVIRONMENT=Development
|
|
|
|
- Testing:CreateAccountOnLogin=true
|
|
|
|
- DB:Host=db
|
|
|
|
- DB:Port=5432
|
|
|
|
- DB:Username=continuity
|
|
|
|
- DB:Password=continuity
|
|
|
|
- Game:Data:Path=/app/data/
|
2023-10-09 13:29:53 +00:00
|
|
|
networks:
|
2023-11-19 19:20:16 +00:00
|
|
|
- continuity
|
2023-10-09 13:29:53 +00:00
|
|
|
ports:
|
2023-11-19 19:20:16 +00:00
|
|
|
- 10001:10001
|
2023-11-08 18:49:23 +00:00
|
|
|
volumes:
|
2023-11-19 19:20:16 +00:00
|
|
|
- type: bind
|
|
|
|
source: ../wk-data
|
|
|
|
target: /app/data
|
|
|
|
read_only: true
|
|
|
|
- type: bind
|
|
|
|
source: ../wk-logs
|
|
|
|
target: /app/logs
|
|
|
|
read_only: false
|
|
|
|
- type: bind
|
|
|
|
source: ../config
|
|
|
|
target: /app/config
|
|
|
|
read_only: true
|
2023-10-09 13:29:53 +00:00
|
|
|
|
|
|
|
db:
|
2023-10-27 17:47:17 +00:00
|
|
|
container_name: continuity-db
|
2023-11-14 19:48:17 +00:00
|
|
|
image: postgres:16.1-alpine
|
2023-11-12 14:27:59 +00:00
|
|
|
restart: always
|
2023-10-09 13:29:53 +00:00
|
|
|
environment:
|
2023-11-19 19:20:16 +00:00
|
|
|
- POSTGRES_USER=continuity
|
|
|
|
- POSTGRES_DB=continuity
|
|
|
|
- POSTGRES_PASSWORD=continuity
|
2023-10-09 13:29:53 +00:00
|
|
|
networks:
|
2023-11-19 19:20:16 +00:00
|
|
|
- continuity
|
2023-11-13 20:12:12 +00:00
|
|
|
ports:
|
2023-11-19 19:20:16 +00:00
|
|
|
- 5432:5432
|
2023-10-09 13:29:53 +00:00
|
|
|
volumes:
|
2023-11-19 19:20:16 +00:00
|
|
|
- db-data:/var/lib/postgresql/data
|
2023-10-27 17:47:17 +00:00
|
|
|
healthcheck:
|
2023-11-19 19:20:16 +00:00
|
|
|
test: [ CMD-SHELL, 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}' ]
|
2023-10-27 17:47:17 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
2023-10-09 13:29:53 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
continuity:
|
2023-11-12 14:27:59 +00:00
|
|
|
|
2023-10-09 13:29:53 +00:00
|
|
|
volumes:
|
|
|
|
db-data:
|