This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
forked from shiddenme/defi-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (86 loc) · 2.15 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
version: '3.0'
services:
database:
container_name: mongo_db
image: mongo:3.4-jessie
networks:
- default
expose:
- 27017
volumes:
- db_data:/data/db
restart: unless-stopped
defichain:
container_name: defichain
image: defi/defichain:1.6.0
networks:
- default
ports:
- 8555:8555
- 8554:8554
- 18555:18555
- 18554:18554
- 19555:19555
- 19554:19554
environment:
- NETWORK=${NETWORK:?NETWORK env required}
# command: /app/bin/defid -reindex
volumes:
- node_data:/data
- ./defi.${NETWORK}.conf:/data/defi.conf
restart: unless-stopped
bitcore-node:
container_name: bitcore-node
build: .
image: bitcore-node
command: "bash -c 'cd ./packages/bitcore-node/; npm run tsc; node build/src/server.js'"
networks:
- default
ports:
- ${API_PORT}:3000
environment:
- NETWORK=${NETWORK:?NETWORK env required}
- API_PORT=${API_PORT:-3000}
- DB_HOST=database
- CHAIN=DFI
- BITCORE_CONFIG_PATH=bitcore.config.json
- BITCORE_NODE_FILE_LOG=${BITCORE_NODE_FILE_LOG:-false}
- BITCORE_NODE_SENTRY_DNS=${BITCORE_NODE_SENTRY_DNS:-false}
- DISABLE_HEALTH_CRON=${DISABLE_HEALTH_CRON:-false}
volumes:
- ./bitcore.${NETWORK}.config.json:/usr/src/app/bitcore.config.json
depends_on:
- database
- defichain
restart: unless-stopped
insight:
container_name: insight
build: .
image: insight
command: ['npm', 'run', 'insight-previous:prod']
networks:
- default
ports:
- ${HTTP_PORT}:5000
environment:
- NETWORK=${NETWORK:?NETWORK env required}
- API_PREFIX=${API_PREFIX:?API_PREFIX env required}
- HTTP_PORT=${HTTP_PORT:-5000}
- ENV=prod
- CHAIN=DFI
- BITCORE_CONFIG_PATH=bitcore.config.json
volumes:
- ./bitcore.${NETWORK}.config.json:/usr/src/app/bitcore.config.json
depends_on:
- bitcore-node
restart: unless-stopped
volumes:
db_data:
node_data:
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.28.0.0/16