Copied from rancher community catalog as starting point

This commit is contained in:
WilliamMiceli
2018-06-28 06:18:43 -04:00
parent cc80644bd4
commit 5b1243c281
30 changed files with 1785 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
version: '2'
services:
nextcloud:
image: nextcloud:12-apache
volumes_from:
- nextcloud-data
ports:
- ${NEXTCLOUD_PORT}:80
depends_on:
- mariadb
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

View File

@@ -0,0 +1,47 @@
version: '2'
catalog:
name: nextcloud
version: 0.0.1
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