Added network, volumes and hostname override

This commit is contained in:
WilliamMiceli
2018-07-17 06:30:12 -04:00
parent 6c4b7cbdd7
commit 4293448ecd

View File

@@ -5,9 +5,12 @@ services:
image: traefik:latest image: traefik:latest
command: --api --docker command: --api --docker
labels: labels:
{{- if (.Values.HOST_LABEL)}} io.rancher.container.hostname_override: traefik
{{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
networks:
- public
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"
@@ -15,4 +18,8 @@ services:
restart: always restart: always
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# container_name: traefik - /opt/traefik/traefik.toml:/traefik.toml
- /opt/traefik/acme.json:/acme.json
networks:
public: