Improve mempoolspace service

This commit is contained in:
Taylor Helsper 2020-02-08 20:20:22 -06:00
parent 6e93f8a40c
commit 5d00c8d86c

View File

@ -7,8 +7,6 @@ Wants=www.service mynode_docker_images.service
After=www.service mynode_docker_images.service After=www.service mynode_docker_images.service
[Service] [Service]
WorkingDirectory=/opt/mynode/mempoolspace
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
ExecStartPre=/usr/bin/wait_on_bitcoin.sh ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStart=/usr/bin/docker run --rm --name mempoolspace -p 4080:80 -e BITCOIN_NODE_HOST=172.17.0.1 -e BITCOIN_NODE_USER=mynode -e BITCOIN_NODE_PASS=${BTC_RPC_PASSWORD} -e MEMPOOL_REFRESH_RATE_MS=5000 mempoolspace ExecStart=/usr/bin/docker run --rm --name mempoolspace -p 4080:80 -e BITCOIN_NODE_HOST=172.17.0.1 -e BITCOIN_NODE_USER=mynode -e BITCOIN_NODE_PASS=${BTC_RPC_PASSWORD} -e MEMPOOL_REFRESH_RATE_MS=5000 mempoolspace
ExecStop=/usr/bin/docker stop -t 2 mempoolspace ExecStop=/usr/bin/docker stop -t 2 mempoolspace