Rewrite all

This commit is contained in:
stebifan 2019-11-23 12:22:45 +01:00
parent aab2266459
commit 73ed2eec29
3 changed files with 138 additions and 22 deletions

View File

@ -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

View File

@ -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

View File

@ -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