diff --git a/templates/meshviewer/2/docker-compose.yml b/templates/meshviewer/2/docker-compose.yml new file mode 100644 index 0000000..d275c54 --- /dev/null +++ b/templates/meshviewer/2/docker-compose.yml @@ -0,0 +1,79 @@ +version: '2' + +services: + + meshviewer: + image: hoffmannhosting/meshviewer-docker + volumes: + - meshviewer-app:/usr/share/nginx/html + - meshviewer-cron:/usr/share/nginx/html/data + labels: + io.rancher.container.hostname_override: container_name + traefik.frontend.rule: Host:map.freifunk-troisdorf.de + traefik.enable: true + traefik.port: 80 + traefik.acme: true + tty: true + + grafana: + image: grafana/grafana + environment: + GF_SERVER_ROOT_URL: https://${GRAFANA_DOMAIN} + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD} + volumes: + - grafana:/var/lib/grafana + - grafana-config:/etc/grafana + links: + - influxdb:influxdb + labels: + io.rancher.container.pull_image: always + grafana: yes + traefik.frontend.rule: Host:statistik.freifunk-troisdorf.de + traefik.enable: true + traefik.port: 3000 + traefik.acme: true + + influxdb: + image: tutum/influxdb + volumes: + - influxdb:/data + environment: + PRE_CREATE_DB: freifunk + ADMIN_USER: freifunk + INFLUXDB_INIT_PWD: ${INFLUXDB_PASSWORD} + ports: + - ${INFLUX_8083}:8083 + - ${INFLUX_8086}:8086 + labels: + io.rancher.container.hostname_override: container_name + + prometheus: + image: prom/prometheus + volumes: + - prometheus:/prometheus-data + - prometheus-conf:/etc/ + labels: + io.rancher.container.hostname_override: container_name + + fetch-json: + image: hoffmannhosting/docker-meshviewer-cron + volumes: + - meshviewer-cron:/opt/data + labels: + io.rancher.container.hostname_override: container_name + +volumes: + meshviewer-app: + driver: rancher-nfs + meshviewer-cron: + driver: rancher-nfs + influxdb: + driver: rancher-nfs + grafana: + driver: rancher-nfs + grafana-config: + driver: rancher-nfs + prometheus: + driver: local + prometheus-conf: + driver: local diff --git a/templates/meshviewer/2/rancher-compose.yml b/templates/meshviewer/2/rancher-compose.yml new file mode 100644 index 0000000..17ffe1a --- /dev/null +++ b/templates/meshviewer/2/rancher-compose.yml @@ -0,0 +1,58 @@ +version: '2' + +catalog: + + name: meshviewer + version: 3 + description: Meshviewer - a Freifunk Visualisation + questions: + - variable: DOMAIN + default: map.freifunk-troisdorf.de + label: Domain + required: true + type: string + - variable: GRAFANA_DOMAIN + default: statistik.freifunk-troisdorf.de + label: Grafana Domain + required: true + type: string + - variable: GRAFANA_PASSWORD + label: Grafana Password + required: true + type: password + - variable: INFLUXDB_PASSWORD + label: Influxdb Password + required: true + type: password + - variable: INFLUX_8083 + default: 8083 + label: Influx Port 8083 + required: true + type: string + - variable: INFLUX_8086 + default: 8086 + label: Influx Port 8086 + required: true + type: string + +services: + + meshviewer: + scale: 1 + start_on_create: true + + grafana: + scale: 1 + start_on_create: true + + influxdb: + scale: 1 + start_on_create: true + + fetch-json: + scale: 1 + start_on_create: true + + prometheus: + scale: 1 + start_on_create: true \ No newline at end of file diff --git a/templates/meshviewer/README.md b/templates/meshviewer/README.md index 6581bd8..991f9d5 100644 --- a/templates/meshviewer/README.md +++ b/templates/meshviewer/README.md @@ -1,22 +1 @@ -# NextCloud - -Enterprise File Sync and Share - -## Configuration - -When you start Nextcloud for the first time you will see the [Installation Wizard](https://docs.nextcloud.com/server/12/admin_manual/installation/installation_wizard.html). - -1.) Point your Web browser to your Nextcloud Installation and enter your [Username / Password](https://docs.nextcloud.com/server/12/admin_manual/installation/installation_wizard.html#quick-start). - -2.) We persist the [Data Directory Location](https://docs.nextcloud.com/server/12/admin_manual/installation/installation_wizard.html#data-directory-location) from `/var/www/html/data` to a Sidekick Container. *(If you don't change the location there is nothing else to do. In case you want to use another directory you have to update the volumes entry for the `nextcloud-data` service in `docker-compose.yml`.)* - -3.) The last step is to update the [Database Settings](https://docs.nextcloud.com/server/12/admin_manual/installation/installation_wizard.html#database-choice) and switch from SQLite to MariaDB for better performance. - -- Database: `YOUR-DATABASE` (default: `nextcloud`) -- MySQL Username: `YOUR-USER` (default: `nextcloud`) -- MySQL Password: `YOUR-PASSWORD` -- MySQL Hostname: `mariadb` (**Important:** Use `mariadb` instead of `localhost`) - -Read more in the official [Nextcloud Documentation](https://docs.nextcloud.com/). - - +# Meshviewer \ No newline at end of file