adding mymonero-web

master
lza_menace 2 years ago
parent 8683d71155
commit f7eaf8fd62

@ -0,0 +1,10 @@
docker-monero-node
lws-web
monero-lws
.env
.git
.gitignore
docker-compose.yaml
env.example
Makefile
README.md

1
.gitignore vendored

@ -1,3 +1,4 @@
monero-lws
docker-monero-node
mymonero-web-js
.env

@ -1,6 +1,7 @@
init:
git clone --recursive --branch develop https://github.com/vtnerd/monero-lws
git clone https://github.com/lalanza808/docker-monero-node
git clone https://github.com/CryptoGrampy/mymonero-web-js
build:
docker-compose build

@ -0,0 +1,29 @@
FROM node:16-alpine as build
ENV NETTYPE 0
ENV SERVER_URL http://localhost
ENV APP_NAME MyMonero-Self-Hosted
WORKDIR /srv/mymonero
COPY mymonero-web-js .
RUN adduser \
-S \
-s /bin/ash \
-g 'mymonero' \
-D \
-h /srv/mymonero \
mymonero
RUN chown -R mymonero .
USER mymonero
RUN npm install
RUN npm run build
COPY mymonero-entrypoint.sh .
RUN chmod +x entrypoint.sh
RUN rm .env.defaults
EXPOSE 9110
CMD ["./entrypoint.sh"]

@ -1,10 +1,12 @@
# monero-lw
Monero lightwallet project.
Monero lightwallet project. Packages the following services in one package:
Runs a private `monero-lws` service in the background with an API layer above that for authentication.
* `monero-lws` by [vtnerd](https://github.com/vtnerd/monero-lws) - scans your wallet's view keys in the background
* `lwsadmin` by [lza_menace](https://lzahq.tech) - backend CRUD app for managing the LWS backend
* `monerod` by [The Monero Project](https://github.com/monero-project/monero) - node for syncing Monero blockchain transactions
* `mymonero-web` by [MyMonero](https://mymonero.com) but forked and cleaned up for personal use by [CryptoGrampy](https://github.com/CryptoGrampy/mymonero-web-js) - the web wallet client
Will be adding client side application to tie the whole thing together.
## Setup
@ -27,6 +29,7 @@ git clone https://git.cloud.lzahq.tech/nerodev/monero-lw && cd monero-lw
# 3
git clone --recursive --branch develop https://github.com/vtnerd/monero-lws
git clone https://github.com/lalanza808/docker-monero-node
git clone https://github.com/CryptoGrampy/mymonero-web-js
# 4
docker-compose build

@ -8,28 +8,48 @@ x-log-config: &log-config
volumes:
lws:
lws-web:
mymonero:
services:
lws-web:
container_name: lws-web
# lws-web:
# container_name: lws-web
# build:
# context: lws-web
# dockerfile: Dockerfile
# restart: unless-stopped
# depends_on:
# - monero-lws
# environment:
# LWS_URL: http://monero-lws:8080
# LWS_ADMIN_URL: http://monero-lws:8081
# QUART_ENV: production
# HOST: 0.0.0.0
# DEBUG: 0
# ports:
# - 127.0.0.1:5000:5000
# volumes:
# - lws-web:/srv/lws-web
# user: "1000:1000"
# command:
# ./.venv/bin/poetry run start
# <<: *log-config
mymonero-web:
container_name: mymonero-web
build:
context: lws-web
context: mymonero-web-js
dockerfile: Dockerfile
restart: unless-stopped
environment:
MYMONERO_WEB_NETTYPE: 0
MYMONERO_WEB_SERVER_URL: localhost:8080
MYMONERO_WEB_APP_NAME: MyMonero-SelfHosted
depends_on:
- monero-lws
environment:
LWS_URL: http://monero-lws:8080
LWS_ADMIN_URL: http://monero-lws:8081
QUART_ENV: production
HOST: 0.0.0.0
DEBUG: 0
expose:
- 80/tcp
ports:
- 127.0.0.1:5000:5000
- 127.0.0.1:8000:80
volumes:
- lws-web:/srv/lws-web
user: "1000:1000"
command:
./.venv/bin/poetry run start
- mymonero:/app
<<: *log-config
monero-lws:
container_name: monero-lws
@ -62,6 +82,12 @@ services:
restart: unless-stopped
volumes:
- ~/.bitmonero:/srv/monerod
expose:
- 18080/tcp
- 18081/tcp
- 18082/tcp
- 18083/tcp
- 18089/tcp
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

@ -0,0 +1,5 @@
#!/bin/sh
env > .env.defaults
node server.js
Loading…
Cancel
Save