Added the additional_ports configuration

ISSUE: https://github.com/mrsked/mrsk/issues/98
This commit is contained in:
Stephen van Beek
2023-03-10 09:39:14 +00:00
parent c282461265
commit 43a1b42f8c
3 changed files with 56 additions and 0 deletions

View File

@@ -426,6 +426,42 @@ traefik:
host_port: 8080
```
### Additional entrypoints for traefik
You can configure additional ports and entrypoints for traefik list so:
```yaml
traefik:
additional_ports:
- 9000
- 9001
args:
entrypoints.myentrypoint.address: ":9000"
entrypoints.otherentrypoint.address: ":9001"
```
Be aware, a lot of the out-of-the-box magic of mrsk is provided by traefik defaults so going down this path requires more manual configuration, like so:
A more complete example including entrypoints would be:
```yaml
service: myservice
labels:
traefik.tcp.routers.other.rule: 'HostSNI(`*`)'
traefik.tcp.routers.other.entrypoints: otherentrypoint
traefik.tcp.services.other.loadbalancer.server.port: 9000
traefik.http.routers.myservice.entrypoints: web
traefik.http.services.myservice.loadbalancer.server.port: 8080
traefik:
additional_ports:
- 9000
args:
'entrypoints.web.address=:80': true
'entrypoints.otherentrypoint.address=:9000': true
```
### Configuring build args for new images
Build arguments that aren't secret can also be configured: