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.
24 lines
535 B
24 lines
535 B
4 years ago
|
version: '3.7'
|
||
|
|
||
|
services:
|
||
|
bitcoin:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: bitcoin.Dockerfile
|
||
|
command: "-datadir=/data"
|
||
|
volumes:
|
||
|
- ./data/bitcoin:/data
|
||
|
network_mode: "host"
|
||
|
stop_grace_period: 15m
|
||
|
electrs:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: electrs.Dockerfile
|
||
|
command: "--network mainnet --db-dir /data --daemon-dir /bitcoin --low-memory"
|
||
|
restart: on-failure
|
||
|
volumes:
|
||
|
- ./data/bitcoin:/bitcoin:ro
|
||
|
- ./data/electrs:/data
|
||
|
network_mode: "host"
|
||
|
stop_grace_period: 5m
|