-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from LasLabs/feature/allow-other-dbs
[IMP] Allow other database containers
- Loading branch information
Showing
11 changed files
with
928 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
version: '2' | ||
|
||
volumes: | ||
confluence-jre-security-data: | ||
driver: ${VOLUME_DRIVER} | ||
confluence-home-data: | ||
driver: ${VOLUME_DRIVER} | ||
confluence-install-data: | ||
driver: ${VOLUME_DRIVER} | ||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
confluence-db-data: | ||
driver: ${VOLUME_DRIVER} | ||
{{- end }} | ||
|
||
services: | ||
|
||
confluence-server: | ||
image: laslabs/alpine-confluence:6.6.0 | ||
volumes: | ||
- confluence-home-data:/var/atlassian/confluence | ||
- confluence-log-data:/opt/atlassian/confluence/logs | ||
- confluence-jre-security-data:/usr/lib/jvm/java-1.8-openjdk/jre/lib/security | ||
- confluence-install-conf-data:/opt/atlassian/confluence/conf | ||
labels: | ||
{{- if ne .Values.TRAEFIK_DOMAIN "" }} | ||
traefik.domain: "${TRAEFIK_DOMAIN}" | ||
{{- end }} | ||
{{- if ne .Values.TRAEFIK_HOST "" }} | ||
traefik.frontend.rule: 'Host: ${TRAEFIK_HOST}' | ||
{{- end }} | ||
traefik.enable: 'true' | ||
traefik.port: '8090' | ||
io.rancher.container.pull_image: always | ||
traefik.frontend.passHostHeader: 'true' | ||
{{- if ne .Values.PSQL_SERVICE "" }} | ||
external_links: | ||
- "${PSQL_SERVICE}:${PSQL_LINK}" | ||
{{- end }} | ||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
links: | ||
- "postgresql:${PSQL_LINK}" | ||
{{- end }} | ||
scale: 1 | ||
start_on_create: true | ||
health_check: | ||
healthy_threshold: 2 | ||
response_timeout: 2000 | ||
port: 8090 | ||
unhealthy_threshold: 60 | ||
initializing_timeout: 200000 | ||
interval: 2000 | ||
strategy: recreate | ||
request_line: GET "/" "HTTP/1.0" | ||
reinitializing_timeout: 200000 | ||
|
||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
postgresql: | ||
image: postgres:9.6-alpine | ||
environment: | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
POSTGRES_PASSWORD: ${PSQL_PASSWORD} | ||
POSTGRES_USER: ${PSQL_USER} | ||
volumes: | ||
- confluence-db-data:/var/lib/postgresql/data | ||
scale: 1 | ||
start_on_create: true | ||
health_check: | ||
healthy_threshold: 2 | ||
response_timeout: 2000 | ||
port: 5432 | ||
unhealthy_threshold: 20 | ||
initializing_timeout: 60000 | ||
interval: 5000 | ||
strategy: recreate | ||
reinitializing_timeout: 60000 | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
version: "2" | ||
|
||
catalog: | ||
name: Confluence | ||
version: "v0.1.1" | ||
description: | | ||
Confluence with a PostgreSQL backend. | ||
Meant to be proxied by Traefik. | ||
uuid: laslabs-confluence-1 | ||
minimum_rancher_version: v1.0.0 | ||
questions: | ||
|
||
- variable: "VOLUME_DRIVER" | ||
description: "The volume driver to use for persistent storage." | ||
label: "Volume Driver" | ||
required: true | ||
type: "enum" | ||
default: "local" | ||
options: | ||
- local | ||
- rancher-ebs | ||
- rancher-efs | ||
- rancher-nfs | ||
|
||
- variable: "PSQL_SERVICE" | ||
description: | | ||
Existing PostgreSQL database service to use. | ||
Leaving this empty will create a Postgres service in the stack. | ||
label: "PostgreSQL Service" | ||
type: "service" | ||
|
||
- variable: "PSQL_LINK" | ||
description: "Name of PostgreSQL server, as Confluence will see it." | ||
label: "PostgreSQL Name" | ||
default: "db" | ||
type: "string" | ||
required: true | ||
|
||
- variable: "PSQL_USER" | ||
description: "Username to use for the PostgreSQL server." | ||
label: "PostgreSQL User" | ||
default: "jira" | ||
type: "string" | ||
required: true | ||
|
||
- variable: "PSQL_PASSWORD" | ||
description: "Password to use for the PostgreSQL server." | ||
label: "PostgreSQL Password" | ||
type: "password" | ||
required: true | ||
|
||
- variable: "TRAEFIK_DOMAIN" | ||
description: "Override for the base domain that is defined in Traefik." | ||
label: "Traefik Domain" | ||
type: "string" | ||
|
||
- variable: "TRAEFIK_HOST" | ||
description: | | ||
Additional domain name that should be advertised through Traefik. | ||
Comma separate to include more than one. | ||
label: "Traefik Host" | ||
type: "string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
version: '2' | ||
volumes: | ||
jira-jre-security-data: | ||
driver: ${VOLUME_DRIVER} | ||
jira-home-data: | ||
driver: ${VOLUME_DRIVER} | ||
jira-install-data: | ||
driver: ${VOLUME_DRIVER} | ||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
jira-db-data: | ||
driver: ${VOLUME_DRIVER} | ||
{{- end }} | ||
|
||
services: | ||
|
||
jira-server: | ||
image: laslabs/alpine-jira:7.6.2 | ||
volumes: | ||
- jira-home-data:/var/atlassian/jira | ||
- jira-log-data:/opt/atlassian/jira/logs | ||
- jira-jre-security-data:/usr/lib/jvm/java-1.8-openjdk/jre/lib/security | ||
- jira-install-conf-data:/opt/atlassian/jira/conf | ||
labels: | ||
{{- if ne .Values.TRAEFIK_DOMAIN "" }} | ||
traefik.domain: "${TRAEFIK_DOMAIN}" | ||
{{- end }} | ||
{{- if ne .Values.TRAEFIK_HOST "" }} | ||
traefik.frontend.rule: 'Host: ${TRAEFIK_HOST}' | ||
{{- end }} | ||
traefik.enable: 'true' | ||
traefik.port: '8080' | ||
io.rancher.container.pull_image: always | ||
traefik.frontend.passHostHeader: 'true' | ||
{{- if ne .Values.PSQL_SERVICE "" }} | ||
external_links: | ||
- "${PSQL_SERVICE}:${PSQL_LINK}" | ||
{{- end }} | ||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
links: | ||
- "postgresql:${PSQL_LINK}" | ||
{{- end }} | ||
scale: 1 | ||
start_on_create: true | ||
health_check: | ||
healthy_threshold: 2 | ||
response_timeout: 2000 | ||
port: 8080 | ||
unhealthy_threshold: 60 | ||
initializing_timeout: 200000 | ||
interval: 2000 | ||
strategy: recreate | ||
request_line: GET "/" "HTTP/1.0" | ||
reinitializing_timeout: 200000 | ||
|
||
{{- if eq .Values.PSQL_SERVICE "" }} | ||
postgresql: | ||
image: postgres:9.6-alpine | ||
environment: | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
POSTGRES_PASSWORD: ${PSQL_PASSWORD} | ||
POSTGRES_USER: ${PSQL_USER} | ||
volumes: | ||
- jira-db-data:/var/lib/postgresql/data | ||
scale: 1 | ||
start_on_create: true | ||
health_check: | ||
healthy_threshold: 2 | ||
response_timeout: 2000 | ||
port: 5432 | ||
unhealthy_threshold: 20 | ||
initializing_timeout: 60000 | ||
interval: 5000 | ||
strategy: recreate | ||
reinitializing_timeout: 60000 | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
version: "2" | ||
|
||
catalog: | ||
name: JIRA | ||
version: "v0.1.1" | ||
description: | | ||
JIRA with a PostgreSQL backend. | ||
Meant to be proxied by Traefik. | ||
uuid: laslabs-jira-1 | ||
minimum_rancher_version: v1.0.0 | ||
questions: | ||
|
||
- variable: "VOLUME_DRIVER" | ||
description: "The volume driver to use for persistent storage." | ||
label: "Volume Driver" | ||
required: true | ||
type: "enum" | ||
default: "local" | ||
options: | ||
- local | ||
- rancher-ebs | ||
- rancher-efs | ||
- rancher-nfs | ||
|
||
- variable: "PSQL_SERVICE" | ||
description: | | ||
Existing PostgreSQL database service to use. | ||
Leaving this empty will create a Postgres service in the stack. | ||
label: "PostgreSQL Service" | ||
type: "service" | ||
|
||
- variable: "PSQL_LINK" | ||
description: "Name of PostgreSQL server, as Confluence will see it." | ||
label: "PostgreSQL Name" | ||
default: "db" | ||
type: "string" | ||
required: true | ||
|
||
- variable: "PSQL_USER" | ||
description: "Username to use for the PostgreSQL server." | ||
label: "PostgreSQL User" | ||
default: "jira" | ||
type: "string" | ||
required: true | ||
|
||
- variable: "PSQL_PASSWORD" | ||
description: "Password to use for the PostgreSQL server." | ||
label: "PostgreSQL Password" | ||
type: "password" | ||
required: true | ||
|
||
- variable: "TRAEFIK_DOMAIN" | ||
description: "Override for the base domain that is defined in Traefik." | ||
label: "Traefik Domain" | ||
type: "string" | ||
|
||
- variable: "TRAEFIK_HOST" | ||
description: | | ||
Additional domain name that should be advertised through Traefik. | ||
Comma separate to include more than one. | ||
label: "Traefik Host" | ||
type: "string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.