diff --git a/.env.example b/.env.example index 63c79a6..1c838fb 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ # ===== Database Configuration ===== # MariaDB 데이터베이스 연결 정보 -DB_HOST=mariadb # 데이터베이스 호스트명 (Docker 서비스명 또는 localhost) +DB_HOST=static-db # 데이터베이스 호스트명 (Docker 서비스명 또는 localhost) DB_PORT=3306 # MariaDB 포트 (기본값: 3306) DB_NAME=firstgarden # 데이터베이스 이름 DB_USER=firstgarden # 데이터베이스 사용자명 diff --git a/README.md b/README.md index f7fa4ca..02e00fb 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,18 @@ +> ⚠️ **DEPRECATED - 더 이상 유지보수하지 않음** +> +> 이 프로젝트는 **FGTools** 통합 프로젝트로 이전되었습니다. +> 새로운 저장소: https://git.siane.kr/firstgarden/fgtools.git +> +> 이 저장소의 코드는 참조 목적으로만 보존됩니다. + +--- + # First Garden 방문통계 분석 서비스 (Static Analysis Service) [![Python Version](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://www.python.org/downloads/) [![Docker](https://img.shields.io/badge/Docker-Supported-blue.svg)](https://www.docker.com/) [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) +[![Status](https://img.shields.io/badge/Status-Deprecated-red.svg)](https://git.siane.kr/firstgarden/fgtools.git) > 퍼스트가든 방문객 데이터 자동 수집, DB 저장, 시계열 예측 분석 서비스 diff --git a/build/Dockerfile b/build/Dockerfile index 0a64171..a7d21a2 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -21,12 +21,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ g++ \ build-essential \ - libmysqlclient-dev \ + default-libmysqlclient-dev \ libssl-dev \ libffi-dev \ curl \ wget \ git \ + vim \ cron \ mariadb-client \ && rm -rf /var/lib/apt/lists/* \ @@ -119,7 +120,8 @@ while true; do wait done EOF -chmod +x /app/docker-entrypoint.sh + +RUN chmod +x /app/docker-entrypoint.sh # 포트 노출 선언 # 8889: Flask 파일 업로드 서버 diff --git a/conf/config.sample.yaml b/conf/config.sample.yaml index 5b4a71c..a4c8fba 100644 --- a/conf/config.sample.yaml +++ b/conf/config.sample.yaml @@ -9,7 +9,7 @@ # MariaDB/MySQL 데이터베이스 연결 설정 # 환경변수로 덮어쓰기 가능: DB_HOST, DB_USER, DB_PASSWORD, DB_NAME database: - host: localhost # DB 호스트명 (Docker: mariadb, 로컬: localhost) + host: localhost # DB 호스트명 (Docker: static-db, 로컬: localhost) user: your_db_user # DB 사용자명 password: your_db_password # DB 비밀번호 name: your_db_name # 사용할 데이터베이스 이름 diff --git a/docker-compose.yml b/docker-compose.yml index ea58288..fb7d12a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,6 @@ -version: '3.8' - services: # MariaDB 데이터베이스 - mariadb: + static-db: image: mariadb:11.2-jammy container_name: fg-static-db environment: @@ -38,11 +36,11 @@ services: dockerfile: build/Dockerfile image: reg.firstgarden.co.kr/fg-static:latest depends_on: - mariadb: + static-db: condition: service_healthy environment: # 데이터베이스 설정 - DB_HOST: mariadb + DB_HOST: static-db DB_PORT: 3306 DB_NAME: ${DB_NAME:-firstgarden} DB_USER: ${DB_USER:-firstgarden}