diff --git a/Dockerfile b/Dockerfile index 8926677..2ecf314 100644 --- a/Dockerfile +++ b/Dockerfile @@ -134,5 +134,4 @@ COPY --chown=monero-lws:monero-lws --from=build /monero-lws/build/src/* /usr/loc # Expose REST server port EXPOSE 8443 -ENTRYPOINT ["monero-lws-daemon", "--db-path=/home/monero-lws/.bitmonero/light_wallet_server"] -CMD ["--daemon=tcp://monerod:18082", "--sub=tcp://monerod:18083", "--log-level=4"] +ENTRYPOINT ["monero-lws-daemon"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0530f35 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,33 @@ +services: + monero-lws: + # depends_on: + # - monero + container_name: monero-lws + build: + context: . + restart: always + ports: + - 8443:8443 + command: + - --db-path=/home/monero-lws/.bitmonero/light_wallet_server + - --daemon=tcp://monero:1882 + - --sub=tcp://monero:18084 + - --zmq-pub=tcp://monero:18084 + - --log-level=4 + - --webhook-ssl-verification=none + - --disable-admin-auth + - --admin-rest-server=http://0.0.0.0:8443/admin + - --rest-server=http://0.0.0.0:8443/basic + - --access-control-origin=lws:8443 + - --confirm-external-bind + volumes: + - monerolws:/home/monero-lws + networks: + - monerolws + +volumes: + monerolws: {} + +networks: + monerolws: + driver: bridge