Update docker-compose.yml

This commit is contained in:
2025-06-06 22:30:49 +02:00
parent 91469735d2
commit 522ea2d976

View File

@@ -10,7 +10,7 @@ services:
environment: environment:
- FLASK_APP=app.py - FLASK_APP=app.py
- FLASK_ENV=production - FLASK_ENV=production
- DATABASE_URL=postgresql://postgres:postgres@db:5432/docupulse_${PORT:-10335} - DATABASE_URL=postgresql://postgres:postgres@db:${DB_PORT:-5432}/docupulse_${PORT:-10335}
- POSTGRES_USER=postgres - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres
- POSTGRES_DB=docupulse_${PORT:-10335} - POSTGRES_DB=docupulse_${PORT:-10335}
@@ -37,6 +37,8 @@ services:
db: db:
image: postgres:13 image: postgres:13
ports:
- "${DB_PORT:-5432}:5432"
environment: environment:
- POSTGRES_USER=postgres - POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres - POSTGRES_PASSWORD=postgres