-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
102 lines (97 loc) · 2.49 KB
/
docker-compose.prod.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
version: "3"
services:
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: Dockerfile
volumes:
- /usr/app/node_modules
depends_on:
- rabbitmq
command: bash -c "sh wait_for_queue.sh && npm run start"
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: Dockerfile
volumes:
- /usr/app/node_modules
depends_on:
- rabbitmq
- address-listener
command: bash -c "sh wait_for_queue.sh && npm run start"
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: Dockerfile
volumes:
- /usr/app/node_modules
depends_on:
- rabbitmq
- address-listener
- erc20-address-listener
command: bash -c "sh wait_for_queue.sh && npm run start"
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: Dockerfile
volumes:
- /usr/app/node_modules
depends_on:
- rabbitmq
- address-listener
- erc20-address-listener
- wallet-identifier
command: bash -c "sh wait_for_queue.sh && npm run start"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
transfer:
image: transfer
container_name: transfer-${NAME_SUFFIX}
build:
context: ./transfer
dockerfile: Dockerfile
volumes:
- /usr/app/node_modules
depends_on:
- rabbitmq
- address-listener
- erc20-address-listener
- wallet-identifier
command: bash -c "sh wait_for_queue.sh && npm run start"
env_file:
- .env
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"