mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2026-06-13 16:19:11 +00:00
VM 배포를 위한 Docker 컨테이너 설정 추가
- content-service/build.gradle: bootJar 파일명 설정 추가 - deployment/container/Dockerfile-backend: 백엔드 서비스 Docker 이미지 파일 - deployment/container/docker-compose.yml: Docker Compose 설정 (환경변수 포함) - deployment/container/build-and-run.sh: 자동화 빌드 및 배포 스크립트 - deployment/container/build-image.md: 상세 배포 가이드 문서 주요 환경변수: - JWT_SECRET: 32자 이상 JWT 서명 키 (JWT 오류 해결) - REDIS/KAFKA: 외부 서버 연결 정보 - REPLICATE_API_TOKEN: Stable Diffusion API 토큰 - AZURE_STORAGE_CONNECTION_STRING: Azure Blob Storage 연결 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
content-service:
|
||||
image: content-service:latest
|
||||
container_name: content-service
|
||||
ports:
|
||||
- "8084:8084"
|
||||
environment:
|
||||
# Spring Profile
|
||||
SPRING_PROFILES_ACTIVE: prod
|
||||
|
||||
# Server Configuration
|
||||
SERVER_PORT: 8084
|
||||
|
||||
# Redis Configuration (외부 Redis 서버)
|
||||
REDIS_HOST: 20.214.210.71
|
||||
REDIS_PORT: 6379
|
||||
REDIS_PASSWORD: Hi5Jessica!
|
||||
|
||||
# Kafka Configuration (외부 Kafka 서버)
|
||||
KAFKA_BOOTSTRAP_SERVERS: 4.230.50.63:9092
|
||||
KAFKA_CONSUMER_GROUP_ID: content-service-consumers
|
||||
|
||||
# JWT Configuration
|
||||
JWT_SECRET: kt-event-marketing-jwt-secret-key-for-authentication-and-authorization-2025
|
||||
JWT_ACCESS_TOKEN_VALIDITY: 3600000
|
||||
JWT_REFRESH_TOKEN_VALIDITY: 604800000
|
||||
|
||||
# Replicate API (Stable Diffusion)
|
||||
REPLICATE_API_TOKEN: r8_Q33U00fSnpjYlHNIRglwurV446h7g8V2wkFFa
|
||||
|
||||
# Azure Blob Storage Configuration
|
||||
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=https;AccountName=blobkteventstorage;AccountKey=tcBN7mAfojbl0uGsOpU7RNuKNhHnzmwDiWjN31liSMVSrWaEK+HHnYKZrjBXXAC6ZPsuxUDlsf8x+AStd++QYg==;EndpointSuffix=core.windows.net
|
||||
AZURE_CONTAINER_NAME: content-images
|
||||
|
||||
# Logging Configuration
|
||||
LOG_LEVEL_APP: INFO
|
||||
LOG_LEVEL_ROOT: INFO
|
||||
|
||||
# JVM Options
|
||||
JAVA_OPTS: "-Xmx512m -Xms256m"
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8084/actuator/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
networks:
|
||||
- kt-event-network
|
||||
|
||||
networks:
|
||||
kt-event-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user