From 27ac4c352f29ac720e926580770c959a20ce7140 Mon Sep 17 00:00:00 2001 From: stebifan Date: Fri, 6 Apr 2018 21:49:58 +0200 Subject: [PATCH] Meshviewer first test --- meshviewer/0/docker-compose.yml | 68 ++++++++++++++++++ meshviewer/0/rancher-compose.yml | 35 +++++++++ meshviewer/README.md | 22 ++++++ meshviewer/catalogIcon-nextcloud.svg | 103 +++++++++++++++++++++++++++ meshviewer/config.yml | 6 ++ 5 files changed, 234 insertions(+) create mode 100644 meshviewer/0/docker-compose.yml create mode 100644 meshviewer/0/rancher-compose.yml create mode 100644 meshviewer/README.md create mode 100644 meshviewer/catalogIcon-nextcloud.svg create mode 100644 meshviewer/config.yml diff --git a/meshviewer/0/docker-compose.yml b/meshviewer/0/docker-compose.yml new file mode 100644 index 0000000..fc74378 --- /dev/null +++ b/meshviewer/0/docker-compose.yml @@ -0,0 +1,68 @@ +version: '2' + +services: + + meshviewer: + image: hoffmannhosting/meshviewer-docker + volumes: + - meshviewer-data:/opt/meshviewer/data + labels: + io.rancher.container.hostname_override: container_name + + nginx: + image: nginx + volumes: + - meshviewer-data:/usr/share/nginx/html + environment: + NGINX_HOST: ${DOMAIN} + NGINX_PORT: 80 + labels: + io.rancher.container.hostname_override: container_name + service=https + + letsencrypt: + image: janeczku/rancher-letsencrypt:v0.5.0 + environment: + API_VERSION: Production + AWS_ACCESS_KEY: '' + AWS_SECRET_KEY: '' + AZURE_CLIENT_ID: '' + AZURE_CLIENT_SECRET: '' + AZURE_RESOURCE_GROUP: '' + AZURE_SUBSCRIPTION_ID: '' + AZURE_TENANT_ID: '' + CERT_NAME: ${DOMAIN} + CLOUDFLARE_EMAIL: '' + CLOUDFLARE_KEY: '' + DNSIMPLE_EMAIL: '' + DNSIMPLE_KEY: '' + DNS_RESOLVERS: 8.8.8.8:53,8.8.4.4:53 + DOMAINS: ${DOMAIN} + DO_ACCESS_TOKEN: '' + DYN_CUSTOMER_NAME: '' + DYN_PASSWORD: '' + DYN_USER_NAME: '' + EMAIL: s.hoffmann@hoffmann-hosting.de + EULA: 'Yes' + GANDI_API_KEY: '' + OVH_APPLICATION_KEY: '' + OVH_APPLICATION_SECRET: '' + OVH_CONSUMER_KEY: '' + PROVIDER: HTTP + PUBLIC_KEY_TYPE: RSA-2048 + RENEWAL_PERIOD_DAYS: '20' + RENEWAL_TIME: '12' + VULTR_API_KEY: '' + volumes: + - /var/lib/rancher:/var/lib/rancher + - zertifikate:/etc/letsencrypt + labels: + io.rancher.container.agent.role: environment + io.rancher.container.create_agent: 'true' + service: letsencrypt + +volumes: + meshviewer-data: + driver: rancher-nfs + zertifikate: + driver: local diff --git a/meshviewer/0/rancher-compose.yml b/meshviewer/0/rancher-compose.yml new file mode 100644 index 0000000..28d477c --- /dev/null +++ b/meshviewer/0/rancher-compose.yml @@ -0,0 +1,35 @@ +version: '2' + +catalog: + + name: meshviewer + version: 1 + description: Meshviewer - a Freifunk Visualisation + questions: + - variable: DOMAIN + default: your-domain.de + label: Domain + required: true + type: string + +services: + + meshviewer: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + + nginx: + scale: 1 + start_on_create: true + + letsencrypt: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} \ No newline at end of file diff --git a/meshviewer/README.md b/meshviewer/README.md new file mode 100644 index 0000000..6581bd8 --- /dev/null +++ b/meshviewer/README.md @@ -0,0 +1,22 @@ +# 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/). + + diff --git a/meshviewer/catalogIcon-nextcloud.svg b/meshviewer/catalogIcon-nextcloud.svg new file mode 100644 index 0000000..628c953 --- /dev/null +++ b/meshviewer/catalogIcon-nextcloud.svg @@ -0,0 +1,103 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/meshviewer/config.yml b/meshviewer/config.yml new file mode 100644 index 0000000..24dc877 --- /dev/null +++ b/meshviewer/config.yml @@ -0,0 +1,6 @@ +name: meshviewer +description: Freifunk Meshviewer +version: 10.0.0 +category: Freifunk +projectURL: none +