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
parent
fb0fc26a21
commit
1c8bab0f04
|
|
@ -17,3 +17,8 @@ app/node_modules/
|
|||
app/vendor/
|
||||
app/public/build/
|
||||
app/public/hot
|
||||
|
||||
# Compose stack env (contains secrets)
|
||||
/.env
|
||||
/.env.local
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue