From 5e2cfae1c2e3603e424808a818414b4022fd2dcd Mon Sep 17 00:00:00 2001 From: Gonzalo Javier Aune Date: Fri, 1 May 2020 12:08:33 +0100 Subject: [PATCH] Changes to dockerfile and volumes --- Dockerfile | 4 +++- config/config.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ca9fee6..3a7ead0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,7 @@ COPY --from=builder /go/bin/lnd /bin/ RUN apk add --update nodejs nodejs-npm sqlite git supervisor RUN git clone https://github.com/stakwork/sphinx-relay /relay/ +RUN cd /relay && git checkout feature/docker WORKDIR /relay/ @@ -66,7 +67,8 @@ RUN npm install --save-dev sequelize RUN npm rebuild RUN npm run tsc -RUN mkdir /relay/.lnd/ +VOLUME /relay/.lnd + COPY ./lnd.conf.sample /relay/.lnd/lnd.conf RUN mkdir -p /var/log/supervisor diff --git a/config/config.json b/config/config.json index 4b73e09..0a2a9e8 100644 --- a/config/config.json +++ b/config/config.json @@ -13,6 +13,6 @@ }, "production": { "dialect": "sqlite", - "storage": "./sphinx.db" + "storage": "./.lnd/sphinx.db" } }