This commit is contained in:
2025-05-26 17:11:52 +02:00
parent f546430daa
commit 9e0e17a8cd
2 changed files with 9 additions and 4 deletions

View File

@@ -15,10 +15,8 @@ services:
db: db:
image: postgres:13 image: postgres:13
environment: env_file:
- POSTGRES_USER=postgres - stack.env
- POSTGRES_PASSWORD=1253
- POSTGRES_DB=docupulse
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
healthcheck: healthcheck:

View File

@@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
# Print environment variables for debugging
echo "Environment variables:"
echo "POSTGRES_USER: $POSTGRES_USER"
echo "POSTGRES_PASSWORD: $POSTGRES_PASSWORD"
echo "POSTGRES_DB: $POSTGRES_DB"
echo "DATABASE_URL: $DATABASE_URL"
# Wait for the database to be ready # Wait for the database to be ready
echo "Waiting for database to be ready..." echo "Waiting for database to be ready..."
while ! nc -z db 5432; do while ! nc -z db 5432; do