Made local volume version
This commit is contained in:
37
templates/EclipseChe-Single.1/0/docker-compose.yml
Normal file
37
templates/EclipseChe-Single.1/0/docker-compose.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
version: '2'
|
||||
services:
|
||||
che-server:
|
||||
image: eclipse/che-server:latest
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
environment:
|
||||
CHE_DOCKER_IP_EXTERNAL: ${TRAEFIK_HOST}
|
||||
CHE_HOST: ${TRAEFIK_HOST}
|
||||
CHE_IN_VM: true
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
{{- if .Values.TRAEFIK_HOST}}
|
||||
traefik.enable: true
|
||||
traefik.port: "80"
|
||||
{{- if .Values.TRAEFIK_BASIC_AUTH}}
|
||||
traefik.frontend.auth.basic: ${TRAEFIK_BASIC_AUTH}
|
||||
{{- end}}
|
||||
# traefik.frontend.headers.SSLRedirect: true
|
||||
traefik.frontend.entryPoints: http,https
|
||||
traefik.frontend.redirect.entryPoint: https
|
||||
traefik.frontend.redirect.permanent: true
|
||||
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||
{{- else}}
|
||||
traefik.enable: false
|
||||
{{- end}}
|
||||
ports:
|
||||
- "${CHE_PORT}:8080"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /RancherCattleData/${DATA_DIR}/Data:/data
|
||||
- /RancherCattleData/${DATA_DIR}/Repo:/repo
|
||||
Reference in New Issue
Block a user