This repository has been archived by the owner on Oct 17, 2020. It is now read-only.
forked from lncm/thebox-compose-system
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
137 lines (134 loc) · 4.94 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
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
version: '3.7'
x-logging: &default-logging
driver: journald
options:
tag: "{{.Name}}"
x-utility: &default-utility
image: alpine:3.11
logging: *default-logging
network_mode: host
services:
tor:
container_name: tor
image: getumbrel/tor:v0.4.1.9
restart: on-failure
logging: *default-logging
volumes:
- "${PWD}/tor/torrc:/etc/tor/torrc"
- "${PWD}/tor/data:/var/lib/tor/"
- "${PWD}/tor/run:/var/run/tor/"
networks:
net:
ipv4_address: 10.11.5.1
nginx:
container_name: nginx
image: nginx:1.17.8
logging: *default-logging
volumes:
- ${PWD}/nginx:/etc/nginx
restart: on-failure
stop_grace_period: 30s
ports:
- "80:80"
networks:
net:
ipv4_address: 10.11.0.2
bitcoin:
container_name: bitcoin
image: lncm/bitcoind:v0.20.0
logging: *default-logging
depends_on: [ tor ]
command: "-zmqpubrawblock=tcp://0.0.0.0:28332 -zmqpubrawtx=tcp://0.0.0.0:28333"
volumes:
- ${PWD}/bitcoin:/root/.bitcoin
- ${PWD}/bitcoin:/data/.bitcoin
- ${PWD}/bitcoin:/data/bitcoin
restart: on-failure
stop_grace_period: 15m30s
ports:
- "127.0.0.1:8333:8333"
networks:
net:
ipv4_address: 10.11.1.1
lnd:
container_name: lnd
image: lncm/lnd:v0.10.1-experimental
logging: *default-logging
depends_on: [ tor ]
volumes:
- ${PWD}/lnd:/data/.lnd
- ${PWD}/lnd:/root/.lnd
- ${PWD}/bitcoin:/root/.bitcoin
restart: on-failure
stop_grace_period: 5m30s
networks:
net:
ipv4_address: 10.11.1.2
dashboard:
container_name: dashboard
image: getumbrel/dashboard:v0.2.1
logging: *default-logging
restart: always
stop_grace_period: 1m30s
networks:
net:
ipv4_address: 10.11.0.3
manager:
container_name: manager
image: getumbrel/manager:v0.1.1
logging: *default-logging
depends_on: [ tor ]
restart: unless-stopped
stop_grace_period: 5m30s
volumes:
- ${PWD}/db:/db
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- ${PWD}:${PWD}
- jwt-public-key:/jwt-public-key
- jwt-private-key:/jwt-private-key
environment:
PORT: "3006"
USER_PASSWORD_FILE: "/db/user.json"
JWT_PUBLIC_KEY_FILE: "/jwt-public-key/jwt.pem"
JWT_PRIVATE_KEY_FILE: "/jwt-private-key/jwt.key"
JWT_EXPIRATION: "3600"
DOCKER_COMPOSE_DIRECTORY: $PWD
DEVICE_HOST: "http://umbrel.local"
MIDDLEWARE_API_URL: "http://10.11.2.2"
networks:
net:
ipv4_address: 10.11.2.1
middleware:
container_name: middleware
image: getumbrel/middleware:v0.1.1
logging: *default-logging
depends_on: [ manager, bitcoin, lnd ]
command: ["./wait-for-node-manager.sh", "10.11.2.1", "npm", "start"]
restart: unless-stopped
depends_on: [ manager ]
volumes:
- ${PWD}/lnd:/lnd
- jwt-public-key:/jwt-public-key
environment:
PORT: "3005"
BITCOIN_HOST: "10.11.1.1"
RPC_PORT: "RPCPORT"
RPC_USER: "lncm"
RPC_PASSWORD: "RPCPASS"
LND_NETWORK: "mainnet"
LND_HOST: "10.11.1.2"
JWT_PUBLIC_KEY_FILE: "/jwt-public-key/jwt.pem"
DEVICE_HOST: "http://umbrel.local"
networks:
net:
ipv4_address: 10.11.2.2
networks:
net:
ipam:
driver: default
config:
- subnet: 10.11.0.0/16
volumes:
jwt-public-key:
jwt-private-key: