Files
Personal-Rancher-Catalog/templates/OpenProject/0/docker-compose.yml
2019-06-13 21:20:50 -04:00

50 lines
1.6 KiB
YAML

version: '2'
services:
memcached:
image: memcached:latest
dns:
- 1.1.1.1
- 1.0.0.1
- 2606:4700:4700::1111
- 2606:4700:4700::1001
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
restart: on-failure
openproject:
image: openproject/community:latest
dns:
- 1.1.1.1
- 1.0.0.1
environment:
CACHE_MEMCACHE_SERVER: memcached
CACHE_NAMESPACE: openproject
SECRET_KEY_BASE: ${SECRET_KEY}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
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.passHostHeader: true
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "80"
### End Web Segment
links:
- memcached
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
- /Persistent/${DATA_DIR}/Database:/var/lib/postgresql/9.6/main
- /Persistent/${DATA_DIR}/Logs:/var/log/supervisor
- /Persistent/${DATA_DIR}/Static:/var/db/openproject