fixed migrations
This commit is contained in:
@@ -3,6 +3,7 @@ version: '3.8'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
command: gunicorn --bind 0.0.0.0:5000 app:app
|
||||
ports:
|
||||
- "10335:5000"
|
||||
environment:
|
||||
@@ -59,17 +60,18 @@ services:
|
||||
celery_worker:
|
||||
build: .
|
||||
command: celery -A celery_worker.celery worker --loglevel=info
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_ENV=production
|
||||
- DATABASE_URL=postgresql://postgres:postgres@db:5432/docupulse
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_ENV=development
|
||||
- DATABASE_URL=postgresql://postgres:postgres@db:5432/docupulse
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
depends_on:
|
||||
- web
|
||||
- redis
|
||||
- db
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "celery", "-A", "celery_worker.celery", "inspect", "ping"]
|
||||
|
||||
Reference in New Issue
Block a user