You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.6 KiB
YAML
75 lines
1.6 KiB
YAML
version: '3.8'
|
|
|
|
# =====================================================
|
|
# Nexus Repository Manager - Docker Compose
|
|
# =====================================================
|
|
# 로컬 테스트용 Nexus 환경 구성
|
|
# For local Nexus testing environment
|
|
#
|
|
# 사용법 / Usage:
|
|
# docker-compose -f docker-compose-nexus.yml up -d
|
|
# docker-compose -f docker-compose-nexus.yml down
|
|
|
|
services:
|
|
nexus:
|
|
image: sonatype/nexus3:latest
|
|
container_name: nexus
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "8081:8081" # Nexus Web UI
|
|
- "8082:8082" # Docker Registry (선택사항)
|
|
|
|
volumes:
|
|
- nexus-data:/nexus-data
|
|
|
|
environment:
|
|
# JVM 메모리 설정 (필요시 조정)
|
|
- INSTALL4J_ADD_VM_PARAMS=-Xms1g -Xmx1g -XX:MaxDirectMemorySize=2g
|
|
|
|
networks:
|
|
- batch-network
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8081/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 120s
|
|
|
|
# MariaDB (배치 프로젝트용)
|
|
mariadb:
|
|
image: mariadb:10.11
|
|
container_name: batch-mariadb
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "3306:3306"
|
|
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root_password
|
|
MYSQL_DATABASE: batch_db
|
|
MYSQL_USER: batch_user
|
|
MYSQL_PASSWORD: batch_password
|
|
|
|
volumes:
|
|
- mariadb-data:/var/lib/mysql
|
|
- ./src/main/resources/db/schema.sql:/docker-entrypoint-initdb.d/schema.sql
|
|
|
|
networks:
|
|
- batch-network
|
|
|
|
command:
|
|
- --character-set-server=utf8mb4
|
|
- --collation-server=utf8mb4_unicode_ci
|
|
|
|
volumes:
|
|
nexus-data:
|
|
driver: local
|
|
mariadb-data:
|
|
driver: local
|
|
|
|
networks:
|
|
batch-network:
|
|
driver: bridge
|