dev: parameterize compose for dev build (web-dev image/container, dev_edge network)

- image web-dev:1.0.0, container web-dev, network dev_edge
- NEXT_PUBLIC_* build args resolved from gitignored .env.production
  (api-dev/app-dev URLs) so the dev bundle targets the dev API.
- ignore .env.production (dev secrets) in this branch.
This commit is contained in:
2026-05-30 13:24:23 +02:00
parent 6c1221c60f
commit f1cca454e2
2 changed files with 8 additions and 4 deletions
+3
View File
@@ -12,3 +12,6 @@ yarn-debug.log*
yarn-error.log*
/.changelog
.npm/
# Dev environment secrets (never commit)
.env.production
+5 -4
View File
@@ -1,3 +1,4 @@
name: web-dev
services:
web:
build:
@@ -7,8 +8,8 @@ services:
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${NEXT_PUBLIC_SUPABASE_ANON_KEY}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL}
image: web:1.0.0
container_name: web
image: web-dev:1.0.0
container_name: web-dev
restart: unless-stopped
security_opt:
- no-new-privileges:true
@@ -17,7 +18,7 @@ services:
expose:
- "3000"
networks:
- edge
- dev_edge
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
interval: 30s
@@ -26,5 +27,5 @@ services:
start_period: 10s
networks:
edge:
dev_edge:
external: true