From a4ed8259da2710123bf525246fd8e81b917a6f02 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 9 Apr 2025 21:55:20 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d0e120c..98d724d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,9 +32,9 @@ services: postgres: # ⬅️ New service (our PostgreSQL database) image: postgres:16 environment: - POSTGRES_USER: dev_user - POSTGRES_PASSWORD: dev_password - POSTGRES_DB: aare_dev_db + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_DB: ${DB_NAME} ports: - "5432:5432" volumes: