feat(tkeg): tkeg BOM 자재관리 서비스 초기 세팅 (api + web + docker-compose)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -417,6 +417,70 @@ services:
|
||||
networks:
|
||||
- tk-network
|
||||
|
||||
# =================================================================
|
||||
# TK-EG - BOM 자재관리 (tkeg)
|
||||
# =================================================================
|
||||
|
||||
tkeg-postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: tk-tkeg-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: tk_bom
|
||||
POSTGRES_USER: tkbom_user
|
||||
POSTGRES_PASSWORD: ${TKEG_POSTGRES_PASSWORD}
|
||||
TZ: Asia/Seoul
|
||||
volumes:
|
||||
- tkeg_postgres_data:/var/lib/postgresql/data
|
||||
- ./tkeg/api/database/init:/docker-entrypoint-initdb.d
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U tkbom_user -d tk_bom"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
networks:
|
||||
- tk-network
|
||||
|
||||
tkeg-api:
|
||||
build:
|
||||
context: ./tkeg/api
|
||||
dockerfile: Dockerfile
|
||||
container_name: tk-tkeg-api
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "30700:8000"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://tkbom_user:${TKEG_POSTGRES_PASSWORD}@tkeg-postgres:5432/tk_bom
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- SECRET_KEY=${SSO_JWT_SECRET}
|
||||
- TKUSER_API_URL=http://tkuser-api:3000
|
||||
- ENVIRONMENT=production
|
||||
- TZ=Asia/Seoul
|
||||
volumes:
|
||||
- tkeg_uploads:/app/uploads
|
||||
depends_on:
|
||||
tkeg-postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- tk-network
|
||||
|
||||
tkeg-web:
|
||||
build:
|
||||
context: ./tkeg/web
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- VITE_API_URL=/api
|
||||
container_name: tk-tkeg-web
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "30780:80"
|
||||
depends_on:
|
||||
- tkeg-api
|
||||
networks:
|
||||
- tk-network
|
||||
|
||||
# =================================================================
|
||||
# AI Service — 맥미니로 이전됨 (~/docker/tk-ai-service/)
|
||||
# =================================================================
|
||||
@@ -479,6 +543,7 @@ services:
|
||||
- tkpurchase-web
|
||||
- tksafety-web
|
||||
- tksupport-web
|
||||
- tkeg-web
|
||||
networks:
|
||||
- tk-network
|
||||
|
||||
@@ -496,6 +561,8 @@ volumes:
|
||||
system3_uploads:
|
||||
external: true
|
||||
name: tkqc-package_uploads
|
||||
tkeg_postgres_data:
|
||||
tkeg_uploads:
|
||||
networks:
|
||||
tk-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user