mirror of
https://github.com/lalanza808/xmr.sh.git
synced 2025-05-11 18:25:02 -04:00
add lws service
This commit is contained in:
parent
b58cf52373
commit
1fd10d8cde
3 changed files with 53 additions and 2 deletions
5
.env
5
.env
|
@ -10,9 +10,14 @@ MONEROD_TAG=latest
|
||||||
MONEROD_RPC_PORT=18081
|
MONEROD_RPC_PORT=18081
|
||||||
MONEROD_RESTRICTED_RPC_PORT=18089
|
MONEROD_RESTRICTED_RPC_PORT=18089
|
||||||
MONEROD_P2P_PORT=18080
|
MONEROD_P2P_PORT=18080
|
||||||
|
MONEROD_ZMQ_RPC_PORT=18082
|
||||||
|
MONEROD_ZMQ_PUB_PORT=18083
|
||||||
MONEROD_EXTRA_PARAMS=
|
MONEROD_EXTRA_PARAMS=
|
||||||
MONEROD_accessControlAllowOriginList=*
|
MONEROD_accessControlAllowOriginList=*
|
||||||
|
|
||||||
|
LWS_TAG=0.17-15bce7f
|
||||||
|
LWS_PORT=8000
|
||||||
|
|
||||||
#TOR_TAG=latest
|
#TOR_TAG=latest
|
||||||
TOR_TAG=0.4.7.7
|
TOR_TAG=0.4.7.7
|
||||||
TOR_HTTP_PORT=80
|
TOR_HTTP_PORT=80
|
||||||
|
|
|
@ -38,6 +38,7 @@ x-monerod-command: &monerod-command
|
||||||
--public-node --no-igd --no-zmq
|
--public-node --no-igd --no-zmq
|
||||||
--enable-dns-blocklist --rpc-restricted-bind-ip=0.0.0.0
|
--enable-dns-blocklist --rpc-restricted-bind-ip=0.0.0.0
|
||||||
--rpc-restricted-bind-port=${MONEROD_RESTRICTED_RPC_PORT} --confirm-external-bind
|
--rpc-restricted-bind-port=${MONEROD_RESTRICTED_RPC_PORT} --confirm-external-bind
|
||||||
|
--zmq-pub tcp://0.0.0.0:${MONEROD_ZMQ_PUB_PORT}--zmq-rpc-bind-port=${MONEROD_ZMQ_RPC_PORT} --zmq-rpc-bind-ip=0.0.0.0
|
||||||
--rpc-bind-port=${MONEROD_RPC_PORT} --rpc-bind-ip=0.0.0.0
|
--rpc-bind-port=${MONEROD_RPC_PORT} --rpc-bind-ip=0.0.0.0
|
||||||
${MONEROD_EXTRA_PARAMS}
|
${MONEROD_EXTRA_PARAMS}
|
||||||
|
|
||||||
|
@ -77,6 +78,34 @@ x-explorer-service: &explorer-service
|
||||||
- "traefik.http.services.explorer.loadbalancer.server.port=${EXPLORER_PORT}"
|
- "traefik.http.services.explorer.loadbalancer.server.port=${EXPLORER_PORT}"
|
||||||
<<: *log-config
|
<<: *log-config
|
||||||
|
|
||||||
|
x-monero-lws-service: &monero-lws-service
|
||||||
|
monero-lws:
|
||||||
|
image: vdo1138/monero-lws:${LWS_TAG}
|
||||||
|
container_name: monero-lws
|
||||||
|
restart: unless-stopped
|
||||||
|
command: >-
|
||||||
|
--rest-server http://0.0.0.0:8000 --daemon=tcp://monerod:${MONEROD_ZMQ_RPC_PORT}
|
||||||
|
--sub=tcp://monerod:${MONEROD_ZMQ_SUB_PORT} --log-level=4
|
||||||
|
--confirm-external-bind
|
||||||
|
volumes:
|
||||||
|
- ./data/monero-lws:/home/monero-lws/.bitmonero/
|
||||||
|
# ports:
|
||||||
|
# - ${LWS_PORT}
|
||||||
|
depends_on:
|
||||||
|
- monerod
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.monero-lws.rule=(PathPrefix(`/lws`) )" #!nole
|
||||||
|
# - "traefik.http.routers.monero-lws.rule=(Host(`${DOMAIN}`) && PathPrefix(`/monero-lws`) )" #!le
|
||||||
|
# - "traefik.http.routers.monero-lws.tls.certresolver=le" #!le
|
||||||
|
- "traefik.http.middlewares.stripprefix-monero-lws.stripprefix.prefixes=/lws"
|
||||||
|
- "traefik.http.routers.monero-lws.middlewares=stripprefix-monero-lws"
|
||||||
|
- "traefik.http.routers.monero-lws.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.monero-lws.tls"
|
||||||
|
- "traefik.http.routers.monero-lws.service=monero-lws"
|
||||||
|
- "traefik.http.services.monero-lws.loadbalancer.server.port=${LWS_PORT}"
|
||||||
|
<<: *log-config
|
||||||
|
|
||||||
x-monero-exporter-service: &monero-exporter-service
|
x-monero-exporter-service: &monero-exporter-service
|
||||||
monero-exporter:
|
monero-exporter:
|
||||||
command:
|
command:
|
||||||
|
@ -177,6 +206,7 @@ services:
|
||||||
|
|
||||||
# <<: *tor-service #!tor
|
# <<: *tor-service #!tor
|
||||||
# <<: *explorer-service #!explorer
|
# <<: *explorer-service #!explorer
|
||||||
|
# <<: *monero-lws-service #!lws
|
||||||
# <<: *monero-exporter-service #!monero-exporter
|
# <<: *monero-exporter-service #!monero-exporter
|
||||||
# <<: *grafana-service #!grafana
|
# <<: *grafana-service #!grafana
|
||||||
# <<: *prometheus-service #!prometheus
|
# <<: *prometheus-service #!prometheus
|
||||||
|
|
20
install
20
install
|
@ -301,6 +301,22 @@ configure_explorer() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure_lws() {
|
||||||
|
echo -e "${OkBullet}Configuring LWS..."
|
||||||
|
while true; do
|
||||||
|
read -r -e -p " Do you want to enable the light wallet service? [y/n]: " yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]*)
|
||||||
|
sed -i '/#!lws/s/# //g' docker-compose.yml
|
||||||
|
ENABLE_LWS=true
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
[Nn]*) break ;;
|
||||||
|
*) echo " Please answer yes or no." ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
configure_grafana() {
|
configure_grafana() {
|
||||||
echo -e "${OkBullet}Configuring grafana..."
|
echo -e "${OkBullet}Configuring grafana..."
|
||||||
while true; do
|
while true; do
|
||||||
|
@ -419,14 +435,14 @@ configure_network
|
||||||
configure_tls_domain
|
configure_tls_domain
|
||||||
configure_tls_port
|
configure_tls_port
|
||||||
configure_pruning
|
configure_pruning
|
||||||
|
configure_lws
|
||||||
configure_cors
|
configure_cors
|
||||||
|
|
||||||
configure_tor
|
configure_tor
|
||||||
# Deployment of explorer disabled until it's stable.
|
# Deployment of explorer disabled until it's stable.
|
||||||
# configure_explorer
|
# configure_explorer
|
||||||
configure_watchtower
|
configure_watchtower
|
||||||
configure_grafana
|
configure_grafana
|
||||||
# configure_lws
|
|
||||||
start_xmrsh
|
start_xmrsh
|
||||||
completed
|
completed
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue