f1cca454e2
- 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.
32 lines
712 B
YAML
32 lines
712 B
YAML
name: web-dev
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
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-dev:1.0.0
|
|
container_name: web-dev
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
env_file:
|
|
- .env.production
|
|
expose:
|
|
- "3000"
|
|
networks:
|
|
- dev_edge
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
networks:
|
|
dev_edge:
|
|
external: true
|