-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.safe.yml
115 lines (100 loc) · 3.04 KB
/
docker-compose.safe.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
version: '3.8'
volumes:
nginx-shared-txs:
nginx-shared-cfg:
services:
nginx:
image: nginx:alpine
ports:
- "${REVERSE_PROXY_PORT}:8000"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- nginx-shared-txs:/nginx-txs
- nginx-shared-cfg:/nginx-cfg
depends_on:
- txs-web
- cfg-web
- cgw-web
txs-db:
image: postgres:14-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./docker/data/txs-db:/var/lib/postgresql/data
cfg-db:
image: postgres:14-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./docker/data/cfg-db:/var/lib/postgresql/data
# Safe Transaction Service
txs-redis:
image: redis:alpine
txs-rabbitmq:
image: rabbitmq:alpine
txs-web:
image: safeglobal/safe-transaction-service:${TXS_VERSION}
env_file:
- ./docker/env/txs.env
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- ETHEREUM_NODE_URL=${RPC_NODE_URL}
depends_on:
- txs-db
- txs-redis
working_dir: /app
volumes:
- nginx-shared-txs:/nginx
- ./scripts/insert_safe_master_copy.py:/app/safe_transaction_service/history/management/commands/insert_safe_master_copy.py
command: docker/web/run_web.sh
txs-worker-indexer: &txs-worker
image: safeglobal/safe-transaction-service:${TXS_VERSION}
env_file:
- ./docker/env/txs.env
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- ETHEREUM_NODE_URL=${RPC_NODE_URL}
- RUN_MIGRATIONS=1
- WORKER_QUEUES=default,indexing
depends_on:
- txs-db
- txs-redis
command: docker/web/celery/worker/run.sh
txs-worker-contracts-tokens:
<<: *txs-worker
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- WORKER_QUEUES=contracts,tokens
- ETHEREUM_NODE_URL=${RPC_NODE_URL}
txs-worker-notifications-webhooks:
<<: *txs-worker
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- WORKER_QUEUES=notifications,webhooks
- ETHEREUM_NODE_URL=${RPC_NODE_URL}
txs-scheduler:
<<: *txs-worker
command: docker/web/celery/scheduler/run.sh
# Safe Config Service
cfg-web:
image: safeglobal/safe-config-service:${CFG_VERSION}
tty: true
volumes:
- nginx-shared-cfg:/nginx
env_file:
- ./docker/env/cfg.env
depends_on:
- cfg-db
# Safe Client Gateway
cgw-redis:
image: redis:alpine
cgw-web:
image: safeglobal/safe-client-gateway:${CGW_VERSION}
env_file:
- ./docker/env/cgw.env
depends_on:
- cgw-redis