-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
79 lines (78 loc) · 1.59 KB
/
docker-compose.yaml
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
71
72
73
74
75
76
77
78
79
version: "3.9"
services:
redis:
image: "redis:alpine"
ports:
- "6379:6379"
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis-data:/data
rabbitmq:
image: "rabbitmq:3-management"
hostname: 'mabbit'
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- "5672:5672"
- "15672:15672"
web:
build: .
image: inscribit-web
env_file:
- .env
volumes:
- ~/.bitcoin:/root/.bitcoin:ro
- ~/.local:/root/.local
network_mode: "host"
beat:
build: .
image: inscribit-web
command: celery -A app.tasks beat --loglevel=INFO
network_mode: "host"
env_file:
- .env
volumes:
- ~/.bitcoin:/root/.bitcoin:ro
- ~/.local:/root/.local
depends_on:
- redis
- rabbitmq
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
celery:
build: .
image: inscribit-web
env_file:
- .env
network_mode: "host"
command: celery -A app.tasks worker --loglevel=INFO -c 1
depends_on:
- redis
- rabbitmq
volumes:
# - web_data:/code
- ~/.bitcoin:/root/.bitcoin:ro
- ./processed:/code/processed
- ./storage:/code/storage
- ~/.local:/root/.local
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
flower:
image: mher/flower
env_file:
- .env
network_mode: "host"
depends_on:
- rabbitmq
- redis
volumes:
redis-data:
rabbitmq-data: