Removed networking, miscellaneous fixes

This commit is contained in:
WilliamMiceli
2019-01-13 16:52:20 -05:00
parent 955ffa2d33
commit 9333421a62
2 changed files with 12 additions and 44 deletions

View File

@@ -3,7 +3,6 @@ version: '2'
services: services:
xwiki: xwiki:
image: xwiki:stable-postgres-tomcat image: xwiki:stable-postgres-tomcat
container_name: xwiki
dns: dns:
- 1.1.1.1 - 1.1.1.1
- 1.0.0.1 - 1.0.0.1
@@ -17,37 +16,26 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true traefik.enable: true
### Start Web Segment ### Start Web Segment
traefik.frontend.entryPoints: http,https traefik.web.frontend.entryPoints: http, https
traefik.frontend.headers.forceSTSHeader: true traefik.web.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.referrerPolicy: no-referrer # traefik.web.frontend.headers.referrerPolicy: no-referrer
traefik.frontend.headers.SSLRedirect: true # traefik.web.frontend.headers.SSLRedirect: true
traefik.frontend.headers.STSPreload: true # traefik.web.frontend.headers.STSPreload: true
traefik.frontend.headers.STSSeconds: 15552000 # traefik.web.frontend.headers.STSSeconds: 15552000
traefik.frontend.rule: ${TRAEFIK_HOST} traefik.web.frontend.rule: ${TRAEFIK_HOST}
traefik.port: "8080" traefik.web.port: "8080"
### End Web Segment ### End Web Segment
{{- else}}
traefik.enable: false
{{- end}}
links: links:
- postgresql # Using links because "depends_on" does not work in Rancher 1.6 - postgresql
networks:
- public-proxy
{{- if .Values.WEB_PORT}}
ports:
- "${WEB_PORT}:8080"
{{- end}}
restart: on-failure restart: on-failure
volumes: volumes:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /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 - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /RancherCattle/${DATA_DIR}/Application:/usr/local/xwiki - /RancherCattle/${DATA_DIR}/XWiki:/usr/local/xwiki
postgresql: postgresql:
image: postgres:alpine image: postgres:alpine
container_name: postgresql
dns: dns:
- 1.1.1.1 - 1.1.1.1
- 1.0.0.1 - 1.0.0.1
@@ -62,18 +50,8 @@ services:
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
networks:
db-admin:
aliases:
- xwiki
restart: on-failure restart: on-failure
volumes: volumes:
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system - /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 - /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
- /RancherCattle/${DATA_DIR}/Database:/var/lib/postgresql/data - /RancherCattle/${DATA_DIR}/Database:/var/lib/postgresql/data
networks:
db-admin:
external: true
public-proxy:
external: true

View File

@@ -20,20 +20,10 @@ catalog:
label: "Public Host Domain" label: "Public Host Domain"
description: | description: |
The host that Traefik will use to provide public access. The host that Traefik will use to provide public access.
Leaving this empty will disable Traefik on this stack.
default: "HostRegexp:{subdomain:.*}subdomain.domain.tld" default: "HostRegexp:{subdomain:.*}subdomain.domain.tld"
required: false required: true
type: string type: string
- variable: "WEB_PORT"
label: "Web Port"
description: |
The port to locally access the web interface on.
Leaving this empty will disable opening any port on the host system.
default: "11100"
required: false
type: string # "Int" sometimes causes problems, and not a huge issue
- variable: "DB_ROOT_PASS" - variable: "DB_ROOT_PASS"
label: "Database Root Password" label: "Database Root Password"
description: | description: |