Completed configuration, now to test

This commit is contained in:
WilliamMiceli
2018-12-05 22:16:09 -05:00
parent 0cdc0df11f
commit d56255a21a
2 changed files with 43 additions and 5 deletions

View File

@@ -44,23 +44,37 @@ services:
- 1.0.0.1
environment:
labels:
networks:
ports:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
restart: on-failure
mysql:
image:
image: mysql:latest
dns:
- 1.1.1.1
- 1.0.0.1
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_DATABASE: guacamole_db
MYSQL_USER: guacamole_user
MYSQL_PASSWORD: password
MYSQL_PASSWORD: ${DB_USER_PASS}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
networks:
ports:
db-admin:
aliases:
- guacamole
restart: on-failure
volumes:
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql # MySQL Database to be persistent
networks:
db-admin:
external: true
public-proxy:
external: true

View File

@@ -32,4 +32,28 @@ catalog:
The port to locally access the web interface on.
default: "10700"
required: true
type: string
- variable: "DB_ROOT_PASS"
label: "MySQL Root Password"
description: |
A secure password to be used by the "root" MySQL user.
# default:
required: true
type: password
- variable: "DB_USER_PASS"
label: "MySQL User Password"
description: |
A secure password to be used by the "nextcloud_user" MySQL user.
# default:
required: true
type: password
- variable: "DATA_DIR"
label: "Data Directory"
description: |
The directory to store persistent data for the stack.
default: "Personal/Nextcloud"
required: true
type: string