# anchoring 자립 서비스 — 루트 compose 와 독립(다른 서버를 건드리지 않음). # DB 는 기존 외부 PostgreSQL(host.docker.internal), Redis 는 여기 동봉. # negodata(견적 생성 측)는 이 redis 인스턴스를 REDIS_HOST 로 바라본다(docs/인수인계.md). # 로그: stdout(json-file) — 로테이션 필수(장기 운영 디스크 보호). 로그 시각은 코드가 KST 로 고정. x-logging: &default-logging driver: json-file options: max-size: "10m" max-file: "5" services: anchoring-redis: image: redis:7-alpine container_name: anchoring-redis ports: - "6379:6379" restart: unless-stopped logging: *default-logging anchoring: build: . container_name: anchoring environment: DB_HOST: host.docker.internal REDIS_HOST: anchoring-redis TZ: Asia/Seoul depends_on: - anchoring-redis restart: unless-stopped logging: *default-logging