First complete configuration for testing

This commit is contained in:
WilliamMiceli
2018-12-07 00:15:14 -05:00
parent 929ac4fc10
commit 723a1c5b74
3 changed files with 101 additions and 31 deletions

View File

@@ -1 +1,7 @@
# OpenProject # OpenProject
https://github.com/opf/openproject/blob/dev/docs/configuration/configuration.md
##### Default admin login
User: admin
Pass: admin

View File

@@ -1,23 +1,59 @@
version: '2' version: '2'
services: services:
openproject: memcached:
image: openproject/community:7 image: memcached:latest
volumes_from: dns:
- openproject-data - 1.1.1.1
ports: - 1.0.0.1
- ${OPENPROJECT_PORT}:80
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
io.rancher.sidekicks: openproject-data {{- if .Values.HOST_LABEL}}
io.rancher.container.hostname_override: container_name io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
openproject-data: {{- end}}
image: openproject/community:7 restart: on-failure
entrypoint: openproject:
- /bin/true image: openproject/community:latest
volumes: dns:
- /var/lib/postgresql/9.4/main - 1.1.1.1
- /var/log/supervisor - 1.0.0.1
- /var/db/openproject environment:
CACHE_MEMCACHE_SERVER: memcached
CACHE_NAMESPACE: openproject
SECRET_KEY_BASE: ${SECRET_KEY}
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name {{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
### Start Web Segment
traefik.web.frontend.entryPoints: http,https
traefik.web.frontend.headers.forceSTSHeader: true
traefik.web.frontend.headers.SSLRedirect: true
traefik.web.frontend.headers.STSPreload: true
traefik.web.frontend.headers.STSSeconds: 15552000
traefik.web.frontend.redirect.entryPoint: https
traefik.web.frontend.redirect.permanent: true
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "80"
### End Web Segment
{{- else}}
traefik.enable: false
{{- end}}
links:
- memcached
networks:
- public-proxy # Used for the connection to the Traefik container for public access
ports:
- "${WEB_PORT}:80"
restart: on-failure
volumes:
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/postgresql/9.6/main
- /RancherCattleData/${DATA_DIR}/Logs:/var/log/supervisor
- /RancherCattleData/${DATA_DIR}/Static:/var/db/openproject
networks:
public-proxy:
external: true

View File

@@ -6,18 +6,46 @@ catalog:
# minimum_rancher_version: # minimum_rancher_version:
# maximum_rancher_version: # maximum_rancher_version:
# upgrade_from: # upgrade_from:
# uuid:
questions: questions:
- variable: OPENPROJECT_PORT - variable: "HOST_LABEL"
label: Port label: "Host Label Key/Value Pair"
default: 80 description: |
required: true The Key/Value pair on the host which the stack should be deployed.
type: int default: "host.id=Host1"
required: false
type: string
services: - variable: "TRAEFIK_HOST"
openproject: label: "Public Host Domain"
scale: 1 description: |
start_on_create: true The host that Traefik will use to provide public access.
openproject-data: Leaving this empty will disable Traefik on this stack.
scale: 1 default: "subdomain.domain.tld"
start_on_create: true required: false
type: string
- variable: "WEB_PORT"
label: "Local Web Port"
description: |
The port to locally access the web interface on.
default: "10800"
required: true
type: string
- variable: "SECRET_KEY"
label: "Secret Key Base"
description: |
A randomly generated string for encryption purposes
# default:
required: true
type: password
- variable: "DATA_DIR"
label: "Data Directory"
description: |
The directory to store persistent data for the stack.
default: "Personal/OpenProject"
required: true
type: string