From a5c5c1850d5838fc10d19b6aebe2e0c3fd792f74 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Fri, 27 Dec 2024 21:49:24 +0200 Subject: [PATCH] add database container to docker-compose.yaml --- docker-compose.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index b3d9a76..e31eeec 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,3 +12,13 @@ services: - "12402:12402" volumes: - ./app:/app/app + env_file: + - db.env + depends_on: + - db + + db: + restart: unless-stopped + image: postgres:17.2-alpine3.21 + env_file: + - db.env