feat(services): docker-compose for insta-render worker (SP-3)
Windows WSL2 Docker용. NAS Redis 6379 + NAS API 18700 호출. /mnt/nas SMB 볼륨 마운트. INTERNAL_API_KEY는 NAS .env와 같은 값. .env는 .gitignore (박재오 머신 로컬 보관). Plan-B-Insta Phase 2 마무리. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
25
services/docker-compose.yml
Normal file
25
services/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: web-ai-services
|
||||||
|
|
||||||
|
services:
|
||||||
|
insta-render:
|
||||||
|
build:
|
||||||
|
context: ./insta-render
|
||||||
|
container_name: insta-render
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "18710:8000"
|
||||||
|
environment:
|
||||||
|
- TZ=Asia/Seoul
|
||||||
|
- REDIS_URL=${REDIS_URL:-redis://192.168.45.54:6379}
|
||||||
|
- NAS_BASE_URL=${NAS_BASE_URL:-http://192.168.45.54:18700}
|
||||||
|
- INTERNAL_API_KEY=${INTERNAL_API_KEY:-}
|
||||||
|
- INSTA_MEDIA_ROOT=${INSTA_MEDIA_ROOT:-/mnt/nas/webpage/data/insta}
|
||||||
|
- INSTA_MEDIA_URL_PREFIX=${INSTA_MEDIA_URL_PREFIX:-/media/insta}
|
||||||
|
- CARD_TEMPLATE_DIR=/app/templates
|
||||||
|
volumes:
|
||||||
|
- /mnt/nas/webpage/data/insta:/mnt/nas/webpage/data/insta
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
|
||||||
|
interval: 60s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
Reference in New Issue
Block a user