forked from safe-global/safe-transaction-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (64 loc) · 1.22 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.5'
volumes:
nginx-shared:
services:
nginx:
image: nginx:alpine
hostname: nginx
ports:
- "8000:8000"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- nginx-shared:/nginx
depends_on:
- web
redis:
image: redis:alpine
ports:
- "6379:6379"
command:
- --save ""
- --appendonly no
rabbitmq:
image: rabbitmq:alpine
db:
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
web:
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
depends_on:
- db
- redis
working_dir: /app
ports:
- "8888:8888"
volumes:
- nginx-shared:/nginx
command: docker/web/run_web.sh
worker: &worker
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
depends_on:
- db
- redis
- rabbitmq
command: docker/web/celery/worker/run.sh
scheduler:
<<: *worker
command: docker/web/celery/scheduler/run.sh
flower:
<<: *worker
command: docker/web/celery/flower/run.sh
ports:
- "5555:5555"