Merge branch 'develop/gogs' into 'master'

Gogs is finished

See merge request WilliamMiceli/Personal-Rancher-Catalog!1
This commit is contained in:
William Miceli
2019-02-06 20:28:26 -05:00
2 changed files with 10 additions and 52 deletions

View File

@@ -14,16 +14,15 @@ 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 SSH Segment ### Start SSH Segment
traefik.ssh.frontend.entryPoints: ssh # traefik.ssh.frontend.entryPoints: ssh
traefik.ssh.frontend.headers.forceSTSHeader: true # traefik.ssh.frontend.headers.forceSTSHeader: true
traefik.ssh.frontend.headers.SSLRedirect: true # traefik.ssh.frontend.headers.SSLRedirect: true
traefik.ssh.frontend.headers.STSPreload: true # traefik.ssh.frontend.headers.STSPreload: true
traefik.ssh.frontend.headers.STSSeconds: 15552000 # traefik.ssh.frontend.headers.STSSeconds: 15552000
traefik.ssh.frontend.rule: Host:${TRAEFIK_HOST} # traefik.ssh.frontend.rule: Host:${TRAEFIK_HOST}
traefik.ssh.port: "22" # traefik.ssh.port: "22"
### End SSH Segment ### End SSH Segment
### Start Web Segment ### Start Web Segment
traefik.web.frontend.entryPoints: http,https traefik.web.frontend.entryPoints: http,https
@@ -34,16 +33,8 @@ services:
traefik.web.frontend.rule: Host:${TRAEFIK_HOST} traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "3000" traefik.web.port: "3000"
### End Web Segment ### End Web Segment
{{- else}}
traefik.enable: false
{{- end}}
links: links:
- mysql - mysql
networks:
- public-proxy
ports:
- "${SSH_PORT}:22"
- "${WEB_PORT}:3000"
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
@@ -55,7 +46,7 @@ services:
- 1.1.1.1 - 1.1.1.1
- 1.0.0.1 - 1.0.0.1
environment: environment:
MYSQL_DATABASE: gogs # Will eventually rename this to "gogs_db" MYSQL_DATABASE: gogs_db
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS} MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_USER: gogs_user MYSQL_USER: gogs_user
MYSQL_PASSWORD: ${DB_USER_PASS} MYSQL_PASSWORD: ${DB_USER_PASS}
@@ -64,18 +55,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:
- gogs
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/mysql - /RancherCattle/${DATA_DIR}/Database:/var/lib/mysql
networks:
db-admin:
external: true
public-proxy:
external: true

View File

@@ -20,24 +20,7 @@ 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: "subdomain.domain.tld" default: "subdomain.domain.tld"
required: false
type: string
- variable: "WEB_PORT"
label: "Local Web Port"
description: |
The port to locally access the web interface on.
default: "10500"
required: true
type: string
- variable: "SSH_PORT"
label: "SSH Port"
description: |
The port to access the SSH server on.
default: "1022"
required: true required: true
type: string type: string
@@ -63,10 +46,4 @@ catalog:
The directory to store persistent data for the stack. The directory to store persistent data for the stack.
default: "Personal/Gogs" default: "Personal/Gogs"
required: true required: true
type: string type: string
services:
gogs:
scale: 1
mysql:
scale: 1