-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (84 loc) · 2.46 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
version: '3'
services:
db:
image: "mongo:latest"
restart: unless-stopped
# ports:
# - 27017:27017
volumes:
- ./sysroot/etc/mongo:/etc/mongo
- ./sysroot/data/db:/data/db
bgoldd-test:
image: "ubuntu:latest"
# restart: unless-stopped
volumes:
# Bitcoin Gold Core config
- ./config/bitcoingold.conf:/etc/bitcoingold.conf
# Bitcoin Gold Core binaries
- ./base/bitcoin-gold:/opt/bitcoin-gold
# Blockchain database
- ./sysroot/opt/btg-data-testnet:/root/.bitcoingold
ports:
# P2P port
- 18338:18338
# RPC port
# - 18339:18339
entrypoint: ["/opt/bitcoin-gold/bin/bgoldd", "-testnet=1", "-conf=/etc/bitcoingold.conf"]
# bgoldd:
# image: "ubuntu:latest"
# # restart: unless-stopped
# volumes:
# # Bitcoin Gold Core config
# - ./config/bitcoingold.conf:/etc/bitcoingold.conf
# # Bitcoin Gold Core binaries
# - ./base/bitcoin-gold:/opt/bitcoin-gold
# # Blockchain database
# - ./sysroot/opt/btg-data:/root/.bitcoingold
# ports:
# # P2P port
# - 8338:8338
# # RPC port
# # - 8339:8339
# entrypoint: ["/opt/bitcoin-gold/bin/bgoldd", "-conf=/etc/bitcoingold.conf"]
bitcore:
image: "node:11.15"
# restart: unless-stopped
depends_on:
- db
volumes:
# Bitcore source
- ./base/bitcore:/opt/bitcore
# Bitcore config file (the username and passworld should match the full node config).
# By default we use the testnet-only config:
- ./config/bitcore.json:/etc/bitcore.json
# Or instead, you can switch `bitcore-multi.json` to run both the mainnet and the testnet:
# - ./config/bitcore-multi.json:/etc/bitcore.json
environment:
DB_HOST: db
DB_NAME: bitcore-btg
BITCORE_CONFIG_PATH: /etc/bitcore.json
BITCORE_NODE_HTTP_HOST: 0.0.0.0
BITCORE_NODE_HTTP_PORT: 3000
CHAIN: btg
# ports:
# - "9229:9229"
# - "3000:3000"
entrypoint: ["/bin/bash","-i","-c","cd /opt/bitcore/; npm run node"]
server:
image: "caddy:latest"
restart: unless-stopped
links:
- bitcore
volumes:
# Caddyfile
- ./config/Caddyfile:/etc/caddy/Caddyfile
# Map the Insight static website built by `bitcore`
- ./base/bitcore/packages/insight/www:/srv
- caddy_data:/data
- caddy_config:/config
ports:
- "80:80"
- "443:443"
volumes:
caddy_data:
caddy_config: