mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 13:57:33 +00:00
feat: add extra hosts to the web service
This commit is contained in:
parent
dd68f6c03e
commit
1d7f796538
|
@ -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…
Reference in a new issue