iop/docker-compose.yml
toki ed882cf6a4 feat: add control-plane, web, and docker-compose
- Add control-plane service with Dockerfile and internal packages
- Add web application (Next.js)
- Add docker-compose.yml for orchestration
- Update .gitignore and README.md
2026-05-18 06:21:48 +09:00

27 lines
698 B
YAML

services:
control-plane:
build:
context: ..
dockerfile: go-iop/apps/control-plane/Dockerfile
ports:
- "9080:9080"
- "19080:19080"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:9080/healthz"]
interval: 10s
timeout: 3s
retries: 5
web:
build:
context: ./apps/web
dockerfile: Dockerfile
environment:
CONTROL_PLANE_INTERNAL_HTTP_URL: "http://control-plane:9080"
NEXT_PUBLIC_CONTROL_PLANE_HTTP_URL: "http://localhost:9080"
NEXT_PUBLIC_CONTROL_PLANE_WIRE_URL: "tcp://localhost:19080"
ports:
- "3000:3000"
depends_on:
control-plane:
condition: service_healthy