-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (64 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
70 lines (64 loc) · 1.32 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
services:
api:
build: .
container_name: multiexchange_apiv2
restart: unless-stopped
ports:
- "8000:8001"
environment:
- ENV=production
networks:
- multiexchange_network
celery:
build: .
container_name: multiexchange_celery
restart: unless-stopped
command: >
celery -A src.app.celery_app.celery_config worker
--pool=solo
--concurrency=1
--loglevel=info
--queues=once_off_queue
environment:
- ENV=production
depends_on:
- redis
networks:
- multiexchange_network
celery-beat:
build: .
container_name: multiexchange_celery_beat
restart: unless-stopped
command: >
celery -A src.app.celery_app.celery_config beat
--loglevel=info
environment:
- ENV=production
depends_on:
- redis
- celery
networks:
- multiexchange_network
redis:
image: redis:latest
container_name: multiexchange_redis_v1
restart: unless-stopped
networks:
- multiexchange_network
volumes:
- multiexchange_volume:/data
ports:
- "6379:6379"
command:
- redis-server
- --appendonly
- "yes"
- --dir
- /data
- --bind
- 0.0.0.0
networks:
multiexchange_network:
driver: bridge
volumes:
multiexchange_volume: