mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05: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
|
- 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…
Add table
Add a link
Reference in a new issue