mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-09 00:25:01 +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
|
- web
|
||||||
labels:
|
labels:
|
||||||
- "traefik.docker.network=traefik_proxy"
|
- "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]
|
profiles: [web]
|
||||||
|
|
||||||
php:
|
php:
|
||||||
|
|
Loading…
Reference in a new issue