mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 10:55:33 +01:00
feat: add extra hosts to the web service
This commit is contained in:
parent
dd68f6c03e
commit
1d7f796538
1 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,12 @@ services:
|
|||
- web
|
||||
labels:
|
||||
- "traefik.docker.network=traefik_proxy"
|
||||
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_PROJECT_NAME}.localhost`)"
|
||||
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(
|
||||
`${COMPOSE_PROJECT_NAME}.localhost`,
|
||||
{% for host in web.extra_hosts | default([]) -%}
|
||||
{{ '`' ~ host ~ '`,' }}
|
||||
{% endfor -%}
|
||||
)"
|
||||
profiles: [web]
|
||||
|
||||
php:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue