forked from bcoin-org/bcoin-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.04 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
version: '2'
services:
bcoin:
image: purse/bcoin
container_name: bcoin
restart: unless-stopped
ports:
#-- Mainnet
- "8333:8333"
- "8332:8332" # RPC/HTTP
- "8334:8334" # Wallet
#-- Testnet
#- "18333:18333"
#- "18332:18332" # RPC/HTTP
#- "18334:18334"
environment:
BCOIN_CONFIG: /data/bcoin.conf
VIRTUAL_HOST: bcoin.yourdomain.org
VIRTUAL_PORT: 8332
#VIRTUAL_PORT: 18332 # Testnest
networks:
- "bcoin"
- "nginx-proxy"
volumes:
- ~/.bcoin:/data
- ${PWD}/secrets/bcoin.conf:/data/bcoin.conf
- ${PWD}/secrets/wallet.conf:/data/wallet.conf
nginx_proxy:
image: jwilder/nginx-proxy
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
networks:
- "nginx-proxy"
volumes:
- ./secrets/certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
bcoin:
external:
name: "bcoin"
nginx-proxy:
external:
name: "nginx-proxy"