From f701af70442942c56bba41267678d051d55468f8 Mon Sep 17 00:00:00 2001 From: Baptiste Bouchereau Date: Tue, 29 Jan 2019 21:04:07 +1300 Subject: [PATCH] Update docker-stack-traefik.yml The command is pretty long. I used yaml folded style: - Each line break is replaced by a space. - The indention in each line will be ignored - A line break will be inserted at the end. Which keep the current behaviour --- contrib/swarm/docker-stack-traefik.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/contrib/swarm/docker-stack-traefik.yml b/contrib/swarm/docker-stack-traefik.yml index 908034a..4e0ebf6 100644 --- a/contrib/swarm/docker-stack-traefik.yml +++ b/contrib/swarm/docker-stack-traefik.yml @@ -109,7 +109,18 @@ services: - "443:443" networks: - mm-out - command: --acme --acme.email="[ADD YOUR EMAIL HERE]" --acme.entrypoint=https --acme.onhostrule --acme.storage="acme/certs.json" --acme.acmelogging --web --docker --docker.domain=docker.localhost --docker.swarmmode --docker.watch --logLevel=DEBUG + command: > + --acme + --acme.email="[ADD YOUR EMAIL HERE]" + --acme.entrypoint=https --acme.onhostrule + --acme.storage="acme/certs.json" + --acme.acmelogging + --web + --docker + --docker.domain=docker.localhost + --docker.swarmmode + --docker.watch + --logLevel=DEBUG volumes: # traefik needs the docker socket in order to work properly - /var/run/docker.sock:/var/run/docker.sock @@ -121,4 +132,4 @@ services: - traefik-certs:/acme deploy: restart_policy: - condition: on-failure \ No newline at end of file + condition: on-failure