-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 982 Bytes
/
docker-compose.yml
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
version: '3'
services:
rabbitmq:
image: "rabbitmq:3.8.9-alpine"
ports:
- "4369:4369"
- "5672:5672"
- "25672:25672"
- "15672:15672"
env_file:
- .env
app:
build: .
image: edat
restart: on-failure
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
- rabbitmq
volumes:
- "./:/app"
command: bash -c 'python manage.py migrate && uvicorn --host 0.0.0.0 base.asgi:app --workers 5'
worker:
image: edat
restart: on-failure
env_file:
- .env
depends_on:
- db
- app
- rabbitmq
command: celery -A base worker -l INFO
volumes:
- "./:/app"
db:
image: postgres:13.1-alpine
ports:
- "5432:5432"
env_file:
- .env