dev 환경 OpenClaw 의존성 옵셔널화

depends_on: openclaw service_healthy 제거 + OPENCLAW_ENABLED 기본값을
false로 변경. OpenClaw 이미지가 placeholder 상태에서 backend 컨테이너가
못 뜨던 문제 해결. OpenClaw 사용 시 별도 docker-compose.openclaw.yml
또는 환경변수 override 로 활성화.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Johngreen
2026-04-28 07:29:56 +09:00
parent 4306fa6f4b
commit eed70014c2
+3 -34
View File
@@ -18,9 +18,9 @@ services:
- JWT_SECRET=ilshin-plm-super-secret-jwt-key-2024
- JWT_EXPIRATION=86400000
- FILE_UPLOAD_DIR=./uploads
# OpenClaw 연동 설정 (OPENCLAW_ENABLED=false 시 클라이언트 비활성)
- OPENCLAW_ENABLED=true
- OPENCLAW_GATEWAY_URL=http://openclaw:18789
# OpenClaw 연동 설정 — dev 기본 비활성. 별도 docker-compose.openclaw.yml 로 띄울 때 true 로 override
- OPENCLAW_ENABLED=${OPENCLAW_ENABLED:-false}
- OPENCLAW_GATEWAY_URL=${OPENCLAW_GATEWAY_URL:-http://openclaw:18789}
volumes:
- ./backend-spring:/app
networks:
@@ -32,37 +32,6 @@ services:
timeout: 10s
retries: 3
start_period: 90s
depends_on:
openclaw:
condition: service_healthy
# OpenClaw 외부 AI 엔진 (port 18789)
# TODO: OPENCLAW_IMAGE 환경변수에 실제 이미지 경로 지정 필요.
# - 오픈소스 Docker Hub 이미지인 경우: docker.io/<org>/openclaw:latest
# - 사내 빌드 이미지인 경우: <registry>/<repo>/openclaw:<tag>
# 확인 전까지 OPENCLAW_IMAGE 환경변수를 .env 파일 또는 실행 커맨드에 직접 지정하세요.
openclaw:
image: ${OPENCLAW_IMAGE:-openclaw/openclaw:latest}
container_name: invyone-openclaw
ports:
- "18789:18789"
environment:
- OPENCLAW_PORT=18789
- OPENCLAW_LOG_LEVEL=info
volumes:
- openclaw-config:/root/.openclaw
networks:
- pms-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:18789/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
openclaw-config:
networks:
pms-network: