1
0

Use volumes to share sshkey and authorized keys instead of copying and add build time variables to docker-compose

This commit is contained in:
nicolas.dorier
2019-09-20 16:39:48 +09:00
parent 21f1af6280
commit c35c606da6
8 changed files with 93 additions and 3 deletions

View File

@@ -16,12 +16,14 @@ services:
BTCPAY_SSHCONNECTION: "root@host.docker.internal"
BTCPAY_SSHTRUSTEDFINGERPRINTS: ${BTCPAY_SSHTRUSTEDFINGERPRINTS}
BTCPAY_SSHKEYFILE: ${BTCPAY_SSHKEYFILE}
BTCPAY_SSHAUTHORIZEDKEYS: ${BTCPAY_SSHAUTHORIZEDKEYS}
BTCPAY_DEBUGLOG: btcpay.log
links:
- postgres
volumes:
- "btcpay_datadir:/datadir"
- "nbxplorer_datadir:/root/.nbxplorer"
- "$<BTCPAY_HOST_SSHAUTHORIZEDKEYS>?:${BTCPAY_SSHAUTHORIZEDKEYS}"
volumes:
btcpay_datadir: