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