From ca0eca4fa2a3951722ac5b473805b63b353a68b3 Mon Sep 17 00:00:00 2001 From: Mayank Date: Thu, 4 Jun 2020 21:20:24 +0530 Subject: [PATCH] Mount docker in manager with new env variable --- docker-compose.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 426600d..5e1eaa3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -51,13 +51,17 @@ services: restart: unless-stopped network_mode: host volumes: - - "${HOME}/db:/db" + - ${HOME}/db:/db + - /var/run/docker.sock:/var/run/docker.sock + - /usr/bin/docker:/usr/bin/docker + - ${HOME}:${HOME} 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: $HOME middleware: image: getumbrel/middleware:v0.1.0 command: ["./wait-for-node-manager.sh", "localhost", "npm", "start"] @@ -66,8 +70,8 @@ services: network_mode: host depends_on: [ manager ] volumes: - - "${HOME}/lnd:/lnd" - - "${HOME}/db/jwt-public-key:/jwt-public-key" + - ${HOME}/lnd:/lnd + - ${HOME}/db/jwt-public-key:/jwt-public-key environment: PORT: "3005" BITCOIN_HOST: "0.0.0.0"