From 1ba606132e1f6b9f4987cf64a5afc7972c7b7a37 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 9 Apr 2025 23:09:27 +0200 Subject: [PATCH] Refactor Docker setup and migrate to PostgreSQL Streamlined Dockerfiles with clearer ENV variables and build args. Switched backend database from MySQL to PostgreSQL, updated configurations accordingly, and added robust Docker Compose services for better orchestration, including health checks and persistent storage. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0a2a793..18a5ef6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: depends_on: # ⬅️ New addition: wait until postgres is started - postgres healthcheck: - test: [ "CMD-SHELL", "curl -k -f https://localhost:8000/openapi.json || exit 1" ] + test: [ "CMD-SHELL", "curl -k -f https://localhost:${PORT}/openapi.json || exit 1" ] interval: 5s timeout: 5s retries: 5