From 8894f7d7ae466c6e376b5426af3538ffde1d0a07 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 2 May 2023 13:03:33 -0700 Subject: [PATCH] base --- .gitmodules | 7 ------- Makefile | 3 +++ README.md | 14 +++++++++++++- docker-compose.yaml | 46 +++++++++++++++++++++++++++++++++++++++++++++ docker-monero-node | 1 - monero-lws | 1 - 6 files changed, 62 insertions(+), 10 deletions(-) delete mode 100644 .gitmodules create mode 100644 Makefile create mode 100644 docker-compose.yaml delete mode 160000 docker-monero-node delete mode 160000 monero-lws diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index f0aa4e5..0000000 --- a/.gitmodules +++ /dev/null @@ -1,7 +0,0 @@ -[submodule "monero-lws"] - path = monero-lws - url = https://github.com/vtnerd/monero-lws - branch = feature/no_auth_admin -[submodule "docker-monero-node"] - path = docker-monero-node - url = https://github.com/lalanza808/docker-monero-node diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aa26faf --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +init: + git clone --recursive --branch develop https://github.com/vtnerd/monero-lws + git clone https://github.com/lalanza808/docker-monero-node \ No newline at end of file diff --git a/README.md b/README.md index acad9ab..8537bd2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # monero-lw -Monero lightwallet project. \ No newline at end of file +Monero lightwallet project. + +Runs a private `monero-lws` service in the background with an API layer above that for authentication. + +Will be adding client side application to tie the whole thing together. + +## Links + +* https://github.com/moneroexamples/openmonero +* https://github.com/vtnerd/monero-lws/tree/feature/no_auth_admin +* https://github.com/vtnerd/monero-lws/blob/feature/no_auth_admin/docs/administration.md +* https://github.com/monero-project/meta/blob/master/api/lightwallet_rest.md +* https://github.com/CryptoGrampy/monero-lws-admin \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..018d7fb --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,46 @@ +version: '3' +x-log-config: &log-config + logging: + driver: json-file + options: + max-size: "50m" + max-file: "5" +services: + # monero-lws-admin: + # container_name: monero-lws-admin + # build: + # context: monero-lws-admin + # dockerfile: Dockerfile + # restart: unless-stopped + # depends_on: + # - monero-lws + # environment: + # NUXT_LWS_API_KEY: a0b03590ee822d76e4a62c5d02e6dac9a5302a67dcb2a82ba5f79687f412df08 + # NUXT_LWS_ADMIN_URL: http://127.0.0.1:8080 + # <<: *log-config + monero-lws: + container_name: monero-lws + build: + context: monero-lws + dockerfile: Dockerfile + args: + MONERO_BRANCH: release-v0.18 + MONERO_COMMIT_HASH: 2f45d5c615492dffa456489d73543870e5a224ab + NPROC: 4 + restart: unless-stopped + depends_on: + - monerod + command: + --scan-threads 4 --rest-threads 4 --rest-server http://0.0.0.0:8080 --admin-rest-server http://0.0.0.0:8081 --log-level 1 --daemon=tcp://monerod:18082 --sub=tcp://monerod:18083 --confirm-external-bind + <<: *log-config + monerod: + container_name: monerod + build: + context: docker-monero-node/dockerfiles + dockerfile: monero_nocompile + restart: unless-stopped + volumes: + - ~/.bitmonero:/srv/monerod + command: + monerod --data-dir /srv/monerod/ --p2p-bind-ip=0.0.0.0 --p2p-bind-port=18080 --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18081 --zmq-rpc-bind-ip=0.0.0.0 --zmq-rpc-bind-port=18082 --zmq-pub tcp://0.0.0.0:18083 --rpc-restricted-bind-ip=0.0.0.0 --rpc-restricted-bind-port=18089 --non-interactive --confirm-external-bind --public-node + <<: *log-config diff --git a/docker-monero-node b/docker-monero-node deleted file mode 160000 index 5bd91c6..0000000 --- a/docker-monero-node +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5bd91c610329b4cf57ffd2bb73d26238da371234 diff --git a/monero-lws b/monero-lws deleted file mode 160000 index ba218f7..0000000 --- a/monero-lws +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ba218f7b361ea61cc8061de1a34ac14b472bf497