2024-01-31 19:37:01 +10:00
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:7
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
env_file:
|
|
|
|
- .env
|
2024-01-31 21:06:28 +10:00
|
|
|
volumes:
|
|
|
|
- ./postgres_data:/var/lib/postgresql/data
|
2024-01-31 19:37:01 +10:00
|
|
|
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()"
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
|
|
|
depends_on:
|
|
|
|
- celery
|
|
|
|
- postgres
|