nginx: extra_hosts host-gateway for vite HMR upstream; gitignore root .env

nginx config has static upstream pointing at host.docker.internal:5173 for
Vite dev server. Without extra_hosts the DNS lookup fails at nginx startup
and crashes the container. Added back, harmless in prod (upstream just unused).
master
Boban Blaskovic 2026-05-31 21:01:28 +02:00
parent fb0fc26a21
commit 1c8bab0f04
2 changed files with 7 additions and 0 deletions

5
.gitignore vendored
View File

@ -17,3 +17,8 @@ app/node_modules/
app/vendor/
app/public/build/
app/public/hot
# Compose stack env (contains secrets)
/.env
/.env.local

View File

@ -48,6 +48,8 @@ services:
restart: unless-stopped
ports:
- "${HTTP_PORT:-80}:80"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
app:
condition: service_started