From 93c6963fc4ac27b58a543c7967985399f459e797 Mon Sep 17 00:00:00 2001 From: vdo Date: Wed, 25 May 2022 16:23:33 +0100 Subject: [PATCH] example domains, DOCKER.md --- .env | 4 ++-- DOCKER.md | 26 ++++++++++++++++++++++++++ docker/config.ini | 9 --------- 3 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 DOCKER.md delete mode 100644 docker/config.ini diff --git a/.env b/.env index 1102e49..a32cb05 100644 --- a/.env +++ b/.env @@ -1,9 +1,9 @@ -PROXY_DOMAIN=mainnet.xmr.sh +PROXY_DOMAIN=your-domain.xmr.example PROXY_PORT=8081 PROXY_TAG=master TRAEFIK_TAG=2.7 -TRAEFIK_ACME_EMAIL=vdo1138@rbx.run +TRAEFIK_ACME_EMAIL=your-email@xmr.example TRAEFIK_LOGLEVEL=DEBUG MONEROD_TAG=latest diff --git a/DOCKER.md b/DOCKER.md new file mode 100644 index 0000000..e498b75 --- /dev/null +++ b/DOCKER.md @@ -0,0 +1,26 @@ +# Docker How-To + +The Docker deployment adds a Traefik balancer and adds SSL support making use of Let's Encrypt. By default, it also adds a CORS headers middleware, so the node can be used in web applications seamlessly. + +### Requirements + +- [Docker](https://docs.docker.com/get-docker/) +- [Docker Compose](https://docs.docker.com/compose/install/) +- A DNS domain pointing to your server (optional) + +### Build and deploy + +To build the base image, run: + +``` +docker-compose build +``` + +Once completed, configure the config file `.env` and `config.docker.ini` to your needs. Don't change the port and keep the node `http://monerod:18089/` as a primary to use the local node. + +Then the node is ready to deploy with: + +``` +docker-compose pull +docker-compose up -d +``` diff --git a/docker/config.ini b/docker/config.ini deleted file mode 100644 index 675f8c1..0000000 --- a/docker/config.ini +++ /dev/null @@ -1,9 +0,0 @@ -http_port=18081 -log_level=Debug # one of Trace, Debug, Info, Warn, Error, Fatal or Panic (levels from logrus) -seconds_between_health_checks = 600 -admin_password_hash=$2a$14$MjwiSCzHYI.nEt/N7R6tI.nF9WQf9bl/7Xi3ivmQ0f2ysmzQliMF2 # "password" - -node=http://xmrnode.digitalcashtools.com:18084/,\ -https://node.monerod.org:443/,\ -http://node.supportxmr.com:18081/ -# find more nodes at https://monero.fail/?nettype=mainnet