feat(templates): add nextcloud to rancher catalog templates

This commit is contained in:
Maik Ellerbrock
2017-06-09 08:24:14 +02:00
parent ecf8c3b259
commit f8559e7cf1
6 changed files with 232 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
version: '2'
services:
nextcloud:
image: nextcloud:12-apache
volumes_from:
- nextcloud-data
ports:
- ${NEXTCLOUD_PORT}:80
labels:
io.rancher.sidekicks: nextcloud-data
io.rancher.container.hostname_override: container_name
nextcloud-data:
image: nextcloud:12-apache
entrypoint:
- /bin/true
volumes:
- /var/www/html
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.hostname_override: container_name
mariadb:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASS}
labels:
io.rancher.sidekicks: mariadb-data
io.rancher.container.hostname_override: container_name
mariadb-data:
image: mariadb:10
entrypoint:
- /bin/true
volumes:
- /var/lib/mysql
tty: true
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.hostname_override: container_name
+50
View File
@@ -0,0 +1,50 @@
version: '2'
catalog:
name: nextcloud
version: 0.0.1
description: Nextcloud - Enterprise File Sync and Share
questions:
- variable: NEXTCLOUD_PORT
label: Port
default: 80
required: true
type: int
- variable: MYSQL_ROOT_PASS
label: MySQL root password
required: true
type: password
- variable: MYSQL_DATABASE
default: nextcloud
label: MySQL Database
required: true
type: string
- variable: MYSQL_USER
default: nextcloud
label: MySQL User
required: true
type: string
- variable: MYSQL_PASS
label: MySQL Pass
required: true
type: password
services:
nextcloud:
scale: 1
start_on_create: true
nextcloud-data:
scale: 1
start_on_create: true
mariadb:
scale: 1
start_on_create: true
mariadb-data:
scale: 1
start_on_create: true