Added port 5050 for Eclipse Che and other comments

This commit is contained in:
WilliamMiceli
2018-11-30 15:51:16 -05:00
parent 3a77b2df79
commit 4127beb218

View File

@@ -3,10 +3,10 @@ version: '2'
services: services:
traefik: traefik:
image: traefik:latest image: traefik:latest
command: --api command: --api # Using Rancher API
dns: dns:
- 1.1.1.1 - 1.1.1.1 # Cloudflare Public DNS 1
- 1.0.0.1 - 1.0.0.1 # Cloudflare Public DNS 2
labels: labels:
io.rancher.container.agent.role: environment io.rancher.container.agent.role: environment
io.rancher.container.create_agent: true io.rancher.container.create_agent: true
@@ -15,17 +15,18 @@ services:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
networks: networks:
- public-proxy - public-proxy # This is used for connecting to other containers, which need to be part of this network as well
ports: ports:
- "80:80" # HTTP - "80:80" # HTTP
- "443:443" # HTTPS - "443:443" # HTTPS
- "1022:22" # SSH - "1022:22" # SSH
- "5050:5050" # Eclipse Che Multi-User Required
- "${DASHBOARD_PORT}:8080" - "${DASHBOARD_PORT}:8080"
restart: always restart: always
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /RancherCattleConfig/${DATA_DIR}/traefik.toml:/traefik.toml - /RancherCattleConfig/${DATA_DIR}/traefik.toml:/traefik.toml
- /RancherCattleConfig/${DATA_DIR}/acme:/etc/traefik/acme - /RancherCattleConfig/${DATA_DIR}/acme:/etc/traefik/acme # For Let's Encrypt certificates
- /RancherCattleConfig/${DATA_DIR}/logs:/external/logs - /RancherCattleConfig/${DATA_DIR}/logs:/external/logs
networks: networks: