diff --git a/templates/ffrs-webseite/0/docker-compose.yml b/templates/ffrs-webseite/0/docker-compose.yml new file mode 100644 index 0000000..bf08452 --- /dev/null +++ b/templates/ffrs-webseite/0/docker-compose.yml @@ -0,0 +1,67 @@ +version: '2' + +services: + + website: + build: https://github.com/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net.git + volumes: + - web:/project + labels: + io.rancher.container.hostname_override: container_name + io.rancher.container.pull_image: always + https: yes + + redirect-https: + image: hoffmannhosting/docker-nginx-https-redirect + labels: + io.rancher.container.hostname_override: container_name + http: yes + depends_on: + - website + + 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: + web: + driver: rancher-nfs + zertifikate: + driver: local diff --git a/templates/ffrs-webseite/0/rancher-compose.yml b/templates/ffrs-webseite/0/rancher-compose.yml new file mode 100644 index 0000000..d7ee9cc --- /dev/null +++ b/templates/ffrs-webseite/0/rancher-compose.yml @@ -0,0 +1,40 @@ +version: '2' + +catalog: + + name: ffrs-website + version: 1 + description: Freifunk Rhein Sieg Webseite + questions: + - variable: DOMAIN + default: freifunk-rhein-sieg.net + label: Domain + required: true + type: string + + +services: + + website: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + + redirect-https: + scale: 1 + start_on_create: true + lb_config: + port_rules: + - target_port: 80 + hostname: ${DOMAIN} + + 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/templates/ffrs-webseite/README.md b/templates/ffrs-webseite/README.md new file mode 100644 index 0000000..6581bd8 --- /dev/null +++ b/templates/ffrs-webseite/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/templates/ffrs-webseite/catalogIcon-nffrs.png b/templates/ffrs-webseite/catalogIcon-nffrs.png new file mode 100644 index 0000000..e6f8280 Binary files /dev/null and b/templates/ffrs-webseite/catalogIcon-nffrs.png differ diff --git a/templates/ffrs-webseite/config.yml b/templates/ffrs-webseite/config.yml new file mode 100644 index 0000000..947d40a --- /dev/null +++ b/templates/ffrs-webseite/config.yml @@ -0,0 +1,6 @@ +name: FFRS - Webseite +description: Freifunk Rhein Sieg Webseite +version: 1 +category: Web +projectURL: https://github.com/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net +