Fix Dockerfile args and added lightwalled volume

This commit is contained in:
Ben Wilson 2020-04-13 14:34:54 -04:00
parent d49d7e9bf0
commit b35ee20c6c
2 changed files with 10 additions and 7 deletions

View File

@ -46,7 +46,9 @@ FROM golang:1.13 AS lightwalletd_base
ADD . /go/src/github.com/zcash/lightwalletd
WORKDIR /go/src/github.com/zcash/lightwalletd
RUN make \
&& /usr/bin/install -c ./lightwalletd /usr/local/bin/
&& /usr/bin/install -c ./lightwalletd /usr/local/bin/ \
&& mkdir -p /var/lib/lightwalletd/db \
&& chown 2002:2002 /var/lib/lightwalletd/db
ARG LWD_USER=lightwalletd
ARG LWD_UID=2002

View File

@ -8,17 +8,17 @@ services:
- .env
#entrypoint: ["/bin/bash", "-c", "sleep infinity"]
command:
- -grpc-bind-addr=0.0.0.0:$LWD_GRPC_PORT
- -http-bind-addr=0.0.0.0:$LWD_HTTP_PORT
- -cache-size=10
- -conf-file=$ZCASHD_CONF_PATH
- -log-file=/dev/stdout
- -log-level=2
- --grpc-bind-addr=0.0.0.0:$LWD_GRPC_PORT
- --http-bind-addr=0.0.0.0:$LWD_HTTP_PORT
- --zcash-conf-path=$ZCASHD_CONF_PATH
- --log-file=/dev/stdout
- --log-level=7
ports:
- "127.0.0.1:$LWD_GRPC_PORT:$LWD_GRPC_PORT"
- "127.0.0.1:$LWD_HTTP_PORT:$LWD_HTTP_PORT"
volumes:
- ./docker/:/srv/lightwalletd
- lightwalletd_cache:/var/lib/lightwalletd
logging:
driver: loki
options:
@ -95,3 +95,4 @@ services:
volumes:
promethus_data:
lightwalletd_cache: