From 1e71f52b72c125dc837926cc86d934573a2bba91 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 9 Feb 2018 18:16:04 +0100 Subject: [PATCH] Explain how to write entrypoints definition in a compose file --- docs/configuration/entrypoints.md | 18 +++++++++++++++++- docs/user-guide/cluster-docker-consul.md | 8 ++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/configuration/entrypoints.md b/docs/configuration/entrypoints.md index c2adba958..a8f7eefcc 100644 --- a/docs/configuration/entrypoints.md +++ b/docs/configuration/entrypoints.md @@ -78,7 +78,23 @@ For more information about the CLI, see the documentation about [Traefik command Whitespace is used as option separator and `,` is used as value separator for the list. The names of the options are case-insensitive. -All available options: +In compose file the entrypoint syntax is different: + +```yaml +traefik: + image: traefik + command: + - --defaultentrypoints=powpow + - "--entryPoints=Name:powpow Address::42 Compress:true" +``` +or +```yaml +traefik: + image: traefik + command: --defaultentrypoints=powpow --entryPoints='Name:powpow Address::42 Compress:true' +``` + +#### All available options: ```ini Name:foo diff --git a/docs/user-guide/cluster-docker-consul.md b/docs/user-guide/cluster-docker-consul.md index 4fb9027f1..eb506956d 100644 --- a/docs/user-guide/cluster-docker-consul.md +++ b/docs/user-guide/cluster-docker-consul.md @@ -94,8 +94,8 @@ services: image: traefik:1.5 command: - "--api" - - "--entrypoints='Name:http Address::80 Redirect.EntryPoint:https'" - - "--entrypoints='Name:https Address::443 TLS'" + - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" + - "--entrypoints=Name:https Address::443 TLS" - "--defaultentrypoints=http,https" - "--acme" - "--acme.storage=/etc/traefik/acme/acme.json" @@ -204,8 +204,8 @@ services: command: - "storeconfig" - "--api" - - "--entrypoints='Name:http Address::80 Redirect.EntryPoint:https'" - - "--entrypoints='Name:https Address::443 TLS'" + - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" + - "--entrypoints=Name:https Address::443 TLS" - "--defaultentrypoints=http,https" - "--acme" - "--acme.storage=traefik/acme/account"