continuity/Server/docker-compose.yml

40 lines
855 B
YAML
Raw Normal View History

services:
server:
2023-11-06 18:05:10 +00:00
container_name: continuity-server
image: server:latest
2023-11-06 18:05:10 +00:00
depends_on:
- db
environment:
- ENVIRONMENT=Development
- Testing:CreateAccountOnLogin=true
- DB:Host=db
- DB:Port=5432
- DB:Username=continuity
- DB:Password=continuity
networks:
- continuity
ports:
- "10001:10001"
db:
2023-11-06 18:05:10 +00:00
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
2023-11-06 18:05:10 +00:00
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: