forked from The-APIS/apis-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
179 lines (168 loc) · 3.71 KB
/
docker-compose.production.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
version: "3"
services:
gateway:
build:
context: .
dockerfile: ./gateway/src/Dockerfile
command: npm start
environment:
NODE_ENV: production
EXPRESS_PORT: "80"
env_file:
- .env
volumes:
- /app/node_modules
- ./gateway/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
ports:
- "80:80"
- "443:80"
restart: always
links:
- postgres
bitcoin-rpc:
build:
context: .
dockerfile: ./bitcoin-rpc/src/Dockerfile
command: npm start
environment:
NODE_ENV: production
EXPRESS_PORT: 80
ports:
- "${BITCOIN_RPC_PORT:-8101}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./bitcoin-rpc/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
links:
- postgres
- bitcoin-core
restart: always
ethereum-rpc:
build:
context: .
dockerfile: ./ethereum-rpc/src/Dockerfile
command: npm start
environment:
NODE_ENV: production
EXPRESS_PORT: 80
ports:
- "${ETHEREUM_RPC_PORT:-8102}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./ethereum-rpc/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
links:
- postgres
restart: always
bitcoin-listener:
build:
context: .
dockerfile: ./bitcoin-listener/src/Dockerfile
command: npm start
environment:
NODE_ENV: production
ports:
- "${BITCOIN_LISTENER_PORT:-8103}:80"
env_file:
- .env
volumes:
- /app/node_modules
- ./bitcoin-listener/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
links:
- bitcoin-core
- postgres
restart: always
ethereum-listener:
build:
context: .
dockerfile: ./ethereum-listener/src/Dockerfile
command: npm start
environment:
NODE_ENV: production
env_file:
- .env
ports:
- "${ETHEREUM_LISTENER_PORT:-8104}:80"
volumes:
- /app/node_modules
- ./ethereum-listener/src:/app
- ./share:/app/share
- ./share/models:/app/constructors/sequelize/models
links:
- postgres
restart: always
bitcoin-core:
image: ruimarinho/bitcoin-core:0.20.1
ports:
- "8332:8332"
- "9332:9332"
- "8333:8333"
- "9333:9333"
- "19332:19332"
- "19333:19333"
- "29332:29332"
env_file:
- .env
command:
- -regtest=1
- -listen=1
- -txindex=1
- -server=1
- -printtoconsole
- -port=19332
- -rpcport=19333
- -rpcallowip=127.0.0.1
- -rpcallowip=172.17.0.0
- -rpcallowip=172.17.0.0/8
- -rpcallowip=172.17.0.0/16
- -rpcallowip=192.168.0.0/16
- -rpcbind=0.0.0.0
- -rpcuser=bitcoin_rpc_user
- -rpcpassword=bitcoin_rpc_pass
- -zmqpubrawtx=tcp://*:29332
- -zmqpubrawblock=tcp://*:29332
- -zmqpubhashblock=tcp://*:29332
- -zmqpubhashtx=tcp://*:29332
- -keypool=100
- -deprecatedrpc=generate
postgres:
image: postgres:13
restart: always
env_file:
- .env
restart: always
redis:
image: "redis:alpine"
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
adminer:
image: adminer
restart: always
ports:
- 8080:8080
env_file:
- .env
developers:
build:
context: ./developers/
dockerfile: Production.Dockerfile
environment:
NODE_ENV: production
env_file:
- .env
volumes:
- /app/node_modules
- ./developers:/app
ports:
- "8099:80"