diff --git a/Server/docker-compose.yml b/Server/docker-compose.yml index 6ba37d3..8659b0b 100644 --- a/Server/docker-compose.yml +++ b/Server/docker-compose.yml @@ -1,7 +1,8 @@ services: server: container_name: continuity-server - image: server:latest + image: continuity:latest + restart: always depends_on: - db environment: @@ -25,6 +26,7 @@ db: container_name: continuity-db image: postgres:16.0-alpine + restart: always environment: - POSTGRES_USER=continuity - POSTGRES_DB=continuity @@ -34,19 +36,13 @@ volumes: - db-data:/var/lib/postgresql/data healthcheck: - test: [ "CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'" ] + test: [ "CMD-SHELL", "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