no more env
This commit is contained in:
@@ -5,22 +5,26 @@ services:
|
||||
build: .
|
||||
ports:
|
||||
- "10335:5000"
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_ENV=production
|
||||
- DATABASE_URL=postgresql://postgres:postgres@db:5432/docupulse
|
||||
volumes:
|
||||
- ./uploads:/app/uploads
|
||||
env_file:
|
||||
- stack.env
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:13
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=docupulse
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "PGPASSWORD=1253 pg_isready -U postgres -d docupulse"]
|
||||
test: ["CMD-SHELL", "PGPASSWORD=postgres pg_isready -U postgres -d docupulse"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
FLASK_APP=app.py
|
||||
FLASK_ENV=production
|
||||
UPLOAD_FOLDER=/app/uploads
|
||||
DATABASE_URL=postgresql://postgres:1253@db:5432/docupulse
|
||||
DATABASE_URL=postgresql://postgres:postgres@db:5432/docupulse
|
||||
SECRET_KEY=your-secure-secret-key-here
|
||||
|
||||
# Database service environment variables
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=1253
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_DB=docupulse
|
||||
Reference in New Issue
Block a user