-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
97 lines (94 loc) · 2.86 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
version: "3"
services:
bpanel:
## Build to use local Dockerfile
# build: .
## Build from image from docker hub
image: bpanel/bpanel:dev
restart: unless-stopped
environment:
# Need this to tell the bpanel client
# how to communicate with the bcoin node
# in docker
_DOCKER_NODE_HOST: bcoin
# Edit this to add/remove plugins! This cannot be edited after startup
# even with bpanel's config.js. Must edit below, and rebuild container.
BPANEL_PLUGINS: "@bpanel/genesis-theme,@bpanel/connection-manager, @bpanel/recent-blocks, @bpanel/mempool-widget"
ports:
- "5000:5000"
- "5001:5001"
- "8000:8000"
volumes:
## Mapping to local files- Handy for dev
- ./webapp:/usr/src/app/webapp
- ./server:/usr/src/app/server
- ./package.json:/usr/src/app/package.json
- ./package-lock.json:/usr/src/app/package-lock.json
# - ./scripts:/usr/src/app/scripts
# Use below to get configs written by bcoin service
- configs:/root/.bpanel
# Use below to copy local bpanel config files
# - ~/.bpanel:/root/.bpanel
## Only MacOSX users need --watch-poll
## the client-id says to use the config created by the
## bcoin docker services
command: --max_old_space_size=4096 server --dev --watch-poll --clear --client-id=_docker
securityc:
image: bpanel/securityc
restart: unless-stopped
ports:
- "80:80"
- "443:443"
env_file:
- ./securityc.env
volumes:
# mount local cert directory into container
- certs:/etc/ssl/nginx
bcoin:
## Use image to to pull from docker hub
image: bpanel/bcoin
## Build to use local Dockerfile-bcoin
# build:
# context: .
# dockerfile: Dockerfile-bcoin
# args:
# repo: bpanel-org/bcoin#experimental
# rebuild: 0
restart: unless-stopped
env_file:
# Set arguments to use in bcoin-init.js
- ./etc/regtest.bcoin.env
ports:
## Comment these if they conflict with something else you're running.
#-- Mainnet
- "8333:8333"
- "8332:8332" # RPC
- "8334:8334" # Wallet
#-- Testnet
- "18333:18333"
- "18332:18332" # RPC
- "18334:18334" # Wallet
#-- Regtest
- "48444:48444"
- "48332:48332" # RPC
- "48334:48334" # Wallet
#-- Simnet
- "18555:18555"
- "18556:18556" # RPC
- "18558:18558" # Wallet
volumes:
- ./scripts:/code/scripts
# # Use below config to persist bcoin data in docker volume
- bcoin:/data
# # Use below config to write bcoin configs to a bpanel client
- configs:/data/.bpanel
# # Use below config instead to use bcoin data from local home dir
# - ~/.bcoin:/data/.bcoin
volumes:
certs:
bcoin:
configs:
driver_opts:
type: none
device: $HOME/.bpanel
o: bind