PaperParser/docker-compose.yml

33 lines
565 B
YAML

services:
redis:
image: redis:7
postgres:
env_file:
- .env
volumes:
- ./postgres_data:/var/lib/postgresql/data
image: postgres:16
celery:
build:
context: .
env_file:
- .env
command: celery -A make_celery worker --loglevel INFO
depends_on:
- redis
web:
build:
context: .
env_file:
- .env
command: gunicorn --bind 0.0.0.0:5000 "app:create_app()"
volumes:
- ./sessions:/sessions
ports:
- 5000:5000
depends_on:
- celery
- postgres