Explain how to write entrypoints definition in a compose file
This commit is contained in:
parent
2b1d2853cd
commit
1e71f52b72
2 changed files with 21 additions and 5 deletions
|
@ -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.
|
Whitespace is used as option separator and `,` is used as value separator for the list.
|
||||||
The names of the options are case-insensitive.
|
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
|
```ini
|
||||||
Name:foo
|
Name:foo
|
||||||
|
|
|
@ -94,8 +94,8 @@ services:
|
||||||
image: traefik:1.5
|
image: traefik:1.5
|
||||||
command:
|
command:
|
||||||
- "--api"
|
- "--api"
|
||||||
- "--entrypoints='Name:http Address::80 Redirect.EntryPoint:https'"
|
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
|
||||||
- "--entrypoints='Name:https Address::443 TLS'"
|
- "--entrypoints=Name:https Address::443 TLS"
|
||||||
- "--defaultentrypoints=http,https"
|
- "--defaultentrypoints=http,https"
|
||||||
- "--acme"
|
- "--acme"
|
||||||
- "--acme.storage=/etc/traefik/acme/acme.json"
|
- "--acme.storage=/etc/traefik/acme/acme.json"
|
||||||
|
@ -204,8 +204,8 @@ services:
|
||||||
command:
|
command:
|
||||||
- "storeconfig"
|
- "storeconfig"
|
||||||
- "--api"
|
- "--api"
|
||||||
- "--entrypoints='Name:http Address::80 Redirect.EntryPoint:https'"
|
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
|
||||||
- "--entrypoints='Name:https Address::443 TLS'"
|
- "--entrypoints=Name:https Address::443 TLS"
|
||||||
- "--defaultentrypoints=http,https"
|
- "--defaultentrypoints=http,https"
|
||||||
- "--acme"
|
- "--acme"
|
||||||
- "--acme.storage=traefik/acme/account"
|
- "--acme.storage=traefik/acme/account"
|
||||||
|
|
Loading…
Add table
Reference in a new issue