From df8c8294768eca04df0820a49e64ccc9771c46c0 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 6 Nov 2023 19:05:10 +0100 Subject: [PATCH] chore: adjustments to composefile --- Server/docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Server/docker-compose.yml b/Server/docker-compose.yml index 0bc41ef..1efa332 100644 --- a/Server/docker-compose.yml +++ b/Server/docker-compose.yml @@ -1,6 +1,9 @@ services: server: + container_name: continuity-server image: server:latest + depends_on: + - db environment: - ENVIRONMENT=Development - Testing:CreateAccountOnLogin=true @@ -14,6 +17,7 @@ - "10001:10001" db: + container_name: continuity-db image: postgres:16.0-alpine environment: - POSTGRES_USER=continuity @@ -23,6 +27,11 @@ - 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: