You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
4.6 KiB

5 years ago
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
5 years ago
services:
tor:
build: ${PWD}/build/tor/
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:
5 years ago
image: nginx:1.17.8
depends_on: [ tor ]
logging: *default-logging
5 years ago
volumes:
5 years ago
- ${PWD}/nginx:/etc/nginx
5 years ago
restart: on-failure
stop_grace_period: 30s
5 years ago
ports:
- "80:80"
networks:
net:
ipv4_address: 10.11.0.2
5 years ago
bitcoin:
image: lncm/bitcoind:v0.20.0
5 years ago
depends_on: [ tor ]
logging: *default-logging
command: "-zmqpubrawblock=tcp://0.0.0.0:28332 -zmqpubrawtx=tcp://0.0.0.0:28333"
5 years ago
volumes:
- ${PWD}/bitcoin:/root/.bitcoin
- ${PWD}/bitcoin:/data/.bitcoin
- ${PWD}/bitcoin:/data/bitcoin
5 years ago
restart: on-failure
stop_grace_period: 15m30s
5 years ago
ports:
- "127.0.0.1:8333:8333"
networks:
net:
ipv4_address: 10.11.1.1
5 years ago
lnd:
image: lncm/lnd:v0.10.0-experimental
5 years ago
depends_on: [ tor ]
logging: *default-logging
5 years ago
volumes:
- ${PWD}/lnd:/data/.lnd
- ${PWD}/lnd:/root/.lnd
- ${PWD}/bitcoin:/root/.bitcoin
5 years ago
restart: on-failure
stop_grace_period: 5m30s
networks:
net:
ipv4_address: 10.11.1.2
dashboard:
5 years ago
image: getumbrel/dashboard:v0.2.1
depends_on: [ bitcoin, lnd, nginx ]
logging: *default-logging
restart: always
stop_grace_period: 1m30s
networks:
net:
ipv4_address: 10.11.0.3
manager:
5 years ago
image: getumbrel/manager:v0.1.1
depends_on: [ bitcoin, lnd, nginx ]
logging: *default-logging
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}
environment:
PORT: "3006"
USER_PASSWORD_FILE: "/db/user.json"
JWT_PUBLIC_KEY_FILE: "/db/jwt-public-key/jwt.pem"
JWT_PRIVATE_KEY_FILE: "/db/jwt-private-key/jwt.key"
JWT_EXPIRATION: "3600"
DOCKER_COMPOSE_DIRECTORY: $PWD
5 years ago
DEVICE_HOST: "http://umbrel.local"
MIDDLEWARE_API_URL: "http://10.11.2.2"
networks:
net:
ipv4_address: 10.11.2.1
middleware:
5 years ago
image: getumbrel/middleware:v0.1.1
depends_on: [ bitcoin, lnd, nginx ]
command: ["./wait-for-node-manager.sh", "10.11.2.1", "npm", "start"]
logging: *default-logging
restart: unless-stopped
depends_on: [ manager ]
5 years ago
volumes:
- ${PWD}/lnd:/lnd
- ${PWD}/db/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"
5 years ago
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