env
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user