Fix Dockerfile args and added lightwalled volume
This commit is contained in:
parent
d49d7e9bf0
commit
b35ee20c6c
|
@ -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
|
||||
|
|
|
@ -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:
|
Loading…
Reference in New Issue