-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.06 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
services:
api:
image: api
build: ./api
ports:
- 8000:8000
command: /commands/api
env_file:
- .env/.env.dev
depends_on:
redis:
condition: service_started
postgres:
condition: service_healthy
postgres:
image: postgres
env_file:
- .env/.env.dev
healthcheck:
test: /usr/bin/pg_isready
interval: 5s
timeout: 10s
retries: 120
redis:
image: redis
celery_worker:
build: ./api
image: celery_worker
command: celery -A app.worker.celery worker --loglevel=info
env_file:
- .env/.env.dev
depends_on:
- redis
- postgres
celery_beat:
build: ./api
image: celery_worker
command: celery -A app.worker.celery beat -l info
env_file:
- .env/.env.dev
depends_on:
- redis
- postgres
flower:
image: mher/flower
command: celery flower --app=app.worker.celery --broker="redis://redis:6379/0"
env_file:
- .env/.env.dev
ports:
- 5557:5555
depends_on:
- redis
- postgres