Files
selfheal-lab-gitops/vm/legacy-api/compose.yaml
T
seon b101e92584 feat: add legacy-api compose and apply script for MIG instances
MIG 인스턴스 startup script가 실행하는 vm/legacy-api/apply.sh를 추가한다.
VM SA의 메타데이터 토큰으로 Secret Manager(selfheal-db-password)에서 DB 비밀번호를
받아 env 파일(0600)에 DSN을 쓰고, 고정 태그 이미지(legacy-api:7186ef0)로 compose up.
Alloy는 WP-15에서 추가한다.
2026-09-23 23:48:04 +09:00

17 lines
495 B
YAML

# legacy-api on the MIG instance (experiment design 3.2). Image tag is pinned to the apps repo commit.
services:
legacy-api:
image: asia-northeast1-docker.pkg.dev/cms-d-414903/selfheal/legacy-api:7186ef0
container_name: legacy-api
restart: always
ports:
- "8080:8080"
environment:
PORT: "8080"
DB_DSN: "${DB_DSN}"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/healthz"]
interval: 10s
timeout: 3s
retries: 3