-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
88 lines (76 loc) · 1.53 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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:
- --appendonly yes
rabbitmq:
image: rabbitmq:alpine
ports:
- "5672:5672"
db:
image: postgres:14-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
indexer-worker: &worker
build:
context: .
dockerfile: docker/web/Dockerfile
env_file:
- .env
environment:
RUN_MIGRATIONS: 1
WORKER_QUEUES: "default,indexing"
depends_on:
- db
- redis
- rabbitmq
command: docker/web/celery/worker/run.sh
contracts-tokens-worker:
<<: *worker
environment:
WORKER_QUEUES: "contracts,tokens"
notifications-webhooks-worker:
<<: *worker
environment:
WORKER_QUEUES: "notifications,webhooks"
scheduler:
<<: *worker
command: docker/web/celery/scheduler/run.sh
flower:
<<: *worker
command: docker/web/celery/flower/run.sh
ports:
- "5555:5555"