Files

30 lines
882 B
YAML
Raw Permalink Normal View History

2026-09-29 18:47:46 +08:00
name: firstleg-test-client-web
2026-07-30 21:52:18 +08:00
services:
client-web:
build:
context: .
dockerfile: Dockerfile
2026-08-08 10:14:07 +08:00
args:
NODE_IMAGE: "${NODE_BASE_IMAGE:-node:22-alpine}"
NGINX_IMAGE: "${NGINX_BASE_IMAGE:-nginx:1.27-alpine}"
2026-09-29 18:47:46 +08:00
VITE_ADMIN_WEB_ORIGIN: "${VITE_ADMIN_WEB_ORIGIN:?VITE_ADMIN_WEB_ORIGIN is required}"
image: client-web-test:${IMAGE_TAG:?IMAGE_TAG is required}
2026-07-30 21:52:18 +08:00
container_name: client-web-test
restart: unless-stopped
2026-09-29 18:47:46 +08:00
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1/healthz"]
interval: 5s
timeout: 3s
retries: 12
start_period: 5s
2026-07-30 21:52:18 +08:00
ports:
2026-09-29 18:47:46 +08:00
- "127.0.0.1:${HOST_PORT:-9002}:80"
2026-07-30 21:52:18 +08:00
environment:
2026-09-29 18:47:46 +08:00
API_UPSTREAM: "${API_UPSTREAM:-http://gateway:9000}"
networks:
- test-backend
networks:
test-backend:
external: true
name: "${TEST_NETWORK:-firstleg-test-network}"