Created
November 30, 2019 04:51
-
-
Save meeDamian/9895650755d6f139a7aefc2dde37245e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
# This defines a default logging destination | |
x-logging: &default-logging | |
driver: journald | |
options: | |
tag: "{{.ImageName}}" | |
# This is the base for any utility image | |
x-utility: &default-utility | |
image: "alpine:3.10" | |
logging: *default-logging | |
networks: | |
net: | |
services: | |
init: | |
<<: *default-utility | |
privileged: true | |
command: "sh -c exit 0" | |
tor: | |
build: ${BOX_BASE}/build/tor/ | |
depends_on: [ init ] | |
restart: on-failure | |
logging: *default-logging | |
volumes: | |
- ${BOX_BASE}/tor/torrc:/etc/tor/torrc | |
- ${BOX_BASE}/tor/data/:/var/lib/tor/ | |
networks: | |
net: | |
ipv4_address: "10.0.90.50" | |
bitcoin: | |
image: "lncm/bitcoind:v0.19.0.1" | |
# build: | |
# context: ${BOX_BASE}/build/volume-permissions/ | |
# args: | |
# IMG: lncm/bitcoind | |
# VER: v0.19.0.1 | |
depends_on: [ init, tor ] | |
restart: on-failure | |
logging: *default-logging | |
volumes: | |
- ${BOX_BASE}/bitcoin/:/root/.bitcoin/ | |
networks: | |
net: | |
ipv4_address: "10.0.83.33" | |
lnd: | |
# image: "lncm/lnd:v0.8.1" | |
build: | |
context: ${BOX_BASE}/build/volume-permissions/ | |
args: | |
IMG: lncm/lnd | |
VER: v0.8.1 | |
depends_on: [ init, tor, bitcoin ] | |
restart: on-failure | |
logging: *default-logging | |
volumes: | |
- ${BOX_BASE}/lnd/:/data/.lnd/ | |
networks: | |
net: | |
ipv4_address: "10.0.97.35" | |
lnd-unlock: | |
build: ${BOX_BASE}/build/lnd-unlock/ | |
# command: 'sh -c ls' | |
# depends_on: [ lnd ] | |
logging: *default-logging | |
secrets: [ lnd-password ] | |
volumes: | |
- ${BOX_BASE}/lnd/data/chain/bitcoin/mainnet/admin.macaroon:/lnd/admin.macaroon | |
- ${BOX_BASE}/lnd/tls.cert:/lnd/tls.cert | |
networks: | |
net: | |
networks: | |
net: | |
ipam: | |
driver: default | |
config: | |
- subnet: "10.0.0.0/16" | |
secrets: | |
lnd-password: | |
file: ${BOX_BASE}/secrets/lnd-password.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tree -L 3 | grep -v '.\(dat\|ldb\)$' | |
. | |
├── bitcoin | |
│ ├── bitcoin.conf | |
│ ├── bitcoind.pid | |
│ ├── blocks | |
│ │ ├── index | |
│ ├── chainstate | |
│ │ ├── 243258.log | |
│ │ ├── CURRENT | |
│ │ ├── LOCK | |
│ │ └── MANIFEST-243255 | |
│ ├── database | |
│ │ └── log.0000000001 | |
│ ├── db.log | |
│ ├── indexes | |
│ │ └── txindex | |
│ ├── onion_private_key | |
│ ├── regtest | |
│ │ ├── blocks | |
│ │ ├── chainstate | |
│ │ ├── debug.log | |
│ │ ├── indexes | |
│ │ └── wallets | |
├── build | |
│ ├── lnd-unlock | |
│ │ └── Dockerfile | |
│ ├── tor | |
│ │ └── Dockerfile | |
│ └── volume-permissions | |
│ └── Dockerfile | |
├── docker-compose.yml | |
├── lnd | |
│ ├── data | |
│ │ ├── chain | |
│ │ ├── graph | |
│ │ └── watchtower | |
│ ├── lnd.conf | |
│ ├── logs | |
│ │ └── bitcoin | |
│ ├── tls.cert | |
│ └── tls.key | |
├── scripts | |
│ ├── mount-all.sh | |
│ └── upgrade-compose.sh | |
├── secrets | |
│ └── lnd-password.txt | |
├── TODO.txt | |
└── tor | |
├── data | |
└── torrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment