From 752cb045cd22da612f0d969cdd05725f82b3a6ff Mon Sep 17 00:00:00 2001 From: Zias van Nes Date: Sat, 27 Sep 2025 11:57:50 +0200 Subject: [PATCH] fix:composefile --- docker-compose.yml | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9bc7d25..9eb11a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,26 +1,26 @@ - services: - db: - image: postgres - restart: always - ports: - - 5432:5432 - env_file: - - .env - environment: - POSTGRES_USER: ${POSTGRES_USER:-root} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-mysecretpassword} - POSTGRES_DB: ${POSTGRES_DB:-local} - volumes: - - pgdata:/var/lib/postgresql/data - app: - build: . - ports: - - 3000:3000 - env_file: - - .env - environment: - DATABASE_URL: postgres://${POSTGRES_USER:-root}:${POSTGRES_PASSWORD:-mysecretpassword}@db:5432/${POSTGRES_DB:-local} - depends_on: - - db +services: + db: + image: postgres + restart: always + ports: + - 5432:5432 + env_file: + - .env + environment: + POSTGRES_USER: ${POSTGRES_USER:-root} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-mysecretpassword} + POSTGRES_DB: ${POSTGRES_DB:-local} + volumes: + - pgdata:/var/lib/postgresql/data + app: + build: . + ports: + - 3000:3000 + env_file: + - .env + environment: + DATABASE_URL: postgres://${POSTGRES_USER:-root}:${POSTGRES_PASSWORD:-mysecretpassword}@db:5432/${POSTGRES_DB:-local} + depends_on: + - db volumes: pgdata: