-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 944 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
volumes:
db-data:
redis-data:
services:
db:
image: postgres:15-alpine
env_file:
- .env
restart: always
ports:
- '5432:5432'
volumes:
- db-data:/var/lib/postgresql/data
backend:
restart: always
env_file:
- .env
build:
context: app
dockerfile: Dockerfile
args:
env: ${ENV}
ports:
- "8000:8000"
# command: gunicorn --config ./gunicorn_config.py src.main:app
command: uvicorn src.main:app --port 8000 --host 0.0.0.0
depends_on:
- db
- celery
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./app/:/code
redis:
restart: always
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis-data:/data
celery:
restart: always
build: app
command: celery --app=src.celery_tasks.celery_app worker --loglevel=info
env_file:
- .env
depends_on:
- redis