Update Traefik example
- Define code block as Yaml - Use env HTTP_PORT to get the port Trafik should use - Use the default example `websecure` entrypoint like in Traefik examples
Dieser Commit ist enthalten in:
Ursprung
0dd67c47c7
Commit
2c91c41695
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
|
@ -185,7 +185,7 @@ For this we'll have to set `SKIP_LETS_ENCRYPT=y` on our `mailcow.conf`, and run
|
||||||
|
|
||||||
Then we'll create a `docker-compose.override.yml` file in order to override the main `docker-compose.yml` found in your mailcow root folder.
|
Then we'll create a `docker-compose.override.yml` file in order to override the main `docker-compose.yml` found in your mailcow root folder.
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
version: '2.1'
|
version: '2.1'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -204,10 +204,10 @@ services:
|
||||||
- traefik.http.routers.moo.tls.certresolver=le
|
- traefik.http.routers.moo.tls.certresolver=le
|
||||||
# Creates a service called "moo" for the container, and specifies which internal port of the container
|
# Creates a service called "moo" for the container, and specifies which internal port of the container
|
||||||
# should traefik route the incoming data to.
|
# should traefik route the incoming data to.
|
||||||
- traefik.http.services.moo.loadbalancer.server.port=80
|
- traefik.http.services.moo.loadbalancer.server.port=${HTTP_PORT}
|
||||||
# Specifies which entrypoint (external port) should traefik listen to, for this container.
|
# Specifies which entrypoint (external port) should traefik listen to, for this container.
|
||||||
# websecure being port 443, check the traefik.toml file liked above.
|
# websecure being port 443, check the traefik.toml file liked above.
|
||||||
- traefik.http.routers.moo.entrypoints=secure
|
- traefik.http.routers.moo.entrypoints=websecure
|
||||||
# Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network
|
# Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network
|
||||||
- traefik.docker.network=web
|
- traefik.docker.network=web
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren