forked from prasanthdotv/evm-wallet-listener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (111 loc) · 2.85 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
version: "3"
services:
mongo:
container_name: "wallet-listeners-mongo-${NAME_SUFFIX}"
image: "mongo:4"
restart: always
rabbitmq:
container_name: wallet-listener-rabbitmq-${NAME_SUFFIX}
image: "rabbitmq:3-management"
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
restart: always
address-listener:
image: address-listener
container_name: address-listener-${NAME_SUFFIX}
build:
context: ./address-listener
dockerfile: dev.Dockerfile
volumes:
- ./address-listener:/usr/app/
- /usr/app/node_modules
depends_on:
- mongo
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run dev"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
erc20-address-listener:
image: erc20-address-listener
container_name: erc20-address-listener-${NAME_SUFFIX}
build:
context: ./erc20-address-listener
dockerfile: dev.Dockerfile
volumes:
- ./erc20-address-listener:/usr/app/
- /usr/app/node_modules
depends_on:
- address-listener
- mongo
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run dev"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
wallet-identifier:
image: wallet-identifier
container_name: wallet-identifier-${NAME_SUFFIX}
build:
context: ./wallet-identifier
dockerfile: dev.Dockerfile
volumes:
- ./wallet-identifier:/usr/app/
- /usr/app/node_modules
depends_on:
- address-listener
- erc20-address-listener
- mongo
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run dev"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
update-balance:
image: update-balance
container_name: update-balance-${NAME_SUFFIX}
build:
context: ./update-balance
dockerfile: dev.Dockerfile
volumes:
- ./update-balance:/usr/app/
- /usr/app/node_modules
depends_on:
- address-listener
- erc20-address-listener
- wallet-identifier
- mongo
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run dev"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
transfer:
image: transfer
container_name: transfer-${NAME_SUFFIX}
build:
context: ./transfer
dockerfile: dev.Dockerfile
volumes:
- ./transfer:/usr/app/
- /usr/app/node_modules
depends_on:
- address-listener
- erc20-address-listener
- wallet-identifier
- mongo
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run dev"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"