First trial of Joomla setup

This commit is contained in:
WilliamMiceli
2019-06-01 12:53:51 -04:00
parent a1fd4f9c42
commit db9427a415
4 changed files with 143 additions and 0 deletions

View File

@@ -0,0 +1 @@
# Joomla

View File

@@ -0,0 +1,61 @@
version: '2'
services:
joomla:
image: joomla:fpm-alpine
dns: # Using Cloudflare DNS
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
environment:
JOOMLA_DB_HOST: postgres
JOOMLA_DB_NAME: joomla_db
JOOMLA_DB_USER: joomla_user
JOOMLA_DB_PASSWORD: ${DB_USER_PASS}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
traefik.enable: true
### Start Joomla Segment
traefik.frontend.entryPoints: http,https
traefik.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
traefik.frontend.headers.SSLRedirect: true
traefik.frontend.headers.STSPreload: true
traefik.frontend.headers.STSSeconds: 15552000
traefik.frontend.passHostHeader: true
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80"
### End Joomla Segment
links:
- postgres
restart: on-failure
volumes:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /Rancher/${DATA_DIR}/Files:/var/www/html # Joomla Public Files
postgres:
image: postgres:latest
dns: # Using Cloudflare DNS
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
environment:
POSTGRES_DB: joomla_db
POSTGRES_USER: joomla_user
POSTGRES_PASSWORD: ${DB_USER_PASS}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
traefik.enable: false
restart: on-failure
volumes:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /Rancher/${DATA_DIR}/Database:/var/lib/postgresql/data # PostgreSQL data

View File

@@ -0,0 +1,73 @@
version: '2'
catalog:
name: Nextcloud
version: latest
# description:
# minimum_rancher_version:
# maximum_rancher_version:
# upgrade_from:
questions:
- variable: "HOST_LABEL"
label: "Host Label Key/Value Pair"
description: |
The Label Key/Value pair of the host which containers should be deployed
default: "host.id=Host1"
required: false
type: string
- variable: "TRAEFIK_HOST"
label: "Public Host Domain"
description: |
The host that Traefik will use to provide public access.
default: "subdomain.domain.tld"
required: true
type: string
- variable: "DB_ROOT_PASS"
label: "Database Root Password"
description: |
A secure password to be used by the "root" database user.
# default:
required: true
type: password
- variable: "DB_USER_PASS"
label: "Database User Password"
description: |
A secure password to be used by the "nextcloud_user" database user.
# default:
required: true
type: password
- variable: "NC_ADMIN"
label: "Nextcloud Admin Username"
description: |
The username of the Nextcloud admin user.
# default:
required: true
type: string
- variable: "NC_ADMIN_PASS"
label: "Nextcloud Admin Password"
description: |
A secure password for the Nextcloud admin user.
# default:
required: true
type: password
- variable: "REDIS"
label: "Enable Redis"
description: |
Add a Redis container for memory caching. Additional setup required, see README.
default: true
required: true
type: boolean
- variable: "DATA_DIR"
label: "Data Directory"
description: |
The directory to store persistent data for the stack.
default: "Personal/Nextcloud"
required: true
type: string

View File

@@ -0,0 +1,8 @@
name: Joomla
description: |
version: latest
# category:
maintainer: WilliamMiceli
# license:
# projectURL: