-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
154 lines (138 loc) · 3.3 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3.3"
volumes:
nginx-shared:
transaction-nginx-shared:
services:
config-nginx:
image: nginx:1.20-alpine
env_file:
- ./safe-config-service/.dev.env
ports:
- "${NGINX_HOST_PORT:-8080}:80"
volumes:
- ./safe-config-service/nginx/templates:/etc/nginx/templates
- nginx-shared:${DOCKER_NGINX_VOLUME_ROOT-/nginx}
depends_on:
- web
db:
image: postgres:13-alpine
env_file:
- ./safe-config-service/.dev.env
volumes:
- ./safe-config-service/data/db:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5433}:5432"
web:
build: ./safe-config-service/
tty: true
volumes:
- nginx-shared:${DOCKER_NGINX_VOLUME_ROOT:-/nginx}
env_file:
- ./safe-config-service/.dev.env
environment:
- POSTGRES_HOST=db
depends_on:
- db
# safe-client-gateway services
nginx:
image: nginx:1.21-alpine
env_file:
- ./safe-client-gateway/.dev.env
ports:
- "${NGINX_HOST_PORT:-8090}:80"
volumes:
- ./safe-client-gateway/nginx/templates:/etc/nginx/templates
depends_on:
- gateway-web
gateway-web:
build: ./safe-client-gateway/
env_file:
- ./safe-client-gateway/.dev.env
depends_on:
- redis
redis:
image: redis:6-alpine
env_file:
- ./safe-client-gateway/.dev.env
ports:
- "${REDIS_PORT:-6379}:${REDIS_PORT:-6379}"
depends_on:
- web
# web-core
# ui:
# build: ./web-core/
# env_file:
# - ./web-core/.env.example
# ports:
# - "3000:3000"
# safe-transaction-service
transaction-nginx:
image: nginx:alpine
hostname: nginx # TODO?
ports:
- "8000:8000"
volumes:
- ./safe-transaction-service/docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- transaction-nginx-shared:/nginx
depends_on:
- transaction-web
transaction-redis:
image: redis:alpine
ports:
- "6380:6379"
command:
- --appendonly yes
rabbitmq:
image: rabbitmq:alpine
transaction-db:
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
transaction-web:
build:
context: ./safe-transaction-service
dockerfile: docker/web/Dockerfile
env_file:
- ./safe-transaction-service/.env.dev
depends_on:
- transaction-db
- transaction-redis
working_dir: /app
ports:
- "8888:8888"
volumes:
- transaction-nginx-shared:/nginx
command: docker/web/run_web.sh
indexer-worker: &worker
build:
context: ./safe-transaction-service
dockerfile: docker/web/Dockerfile
env_file:
- ./safe-transaction-service/.env.dev
environment:
RUN_MIGRATIONS: 1
WORKER_QUEUES: "default,indexing"
depends_on:
- transaction-db
- transaction-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"