fix: resolve database connection issue in docker environment
All checks were successful
Deploy Web Application / deploy (push) Successful in 7s
All checks were successful
Deploy Web Application / deploy (push) Successful in 7s
This commit is contained in:
@@ -12,7 +12,7 @@ from playwright.async_api import async_playwright
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from sql_queries import CrawlerQueries
|
from sql_queries import CrawlerQueries
|
||||||
|
|
||||||
load_dotenv(override=True)
|
load_dotenv()
|
||||||
|
|
||||||
# 글로벌 중단 제어용 이벤트
|
# 글로벌 중단 제어용 이벤트
|
||||||
crawl_stop_event = threading.Event()
|
crawl_stop_event = threading.Event()
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ from playwright.async_api import async_playwright
|
|||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from sql_queries import CrawlerQueries
|
from sql_queries import CrawlerQueries
|
||||||
|
|
||||||
load_dotenv(override=True)
|
load_dotenv()
|
||||||
|
|
||||||
# 글로벌 중단 제어용 이벤트
|
# 글로벌 중단 제어용 이벤트
|
||||||
crawl_stop_event = threading.Event()
|
crawl_stop_event = threading.Event()
|
||||||
|
|||||||
@@ -13,5 +13,7 @@ services:
|
|||||||
# 환경 변수 설정
|
# 환경 변수 설정
|
||||||
environment:
|
environment:
|
||||||
- PYTHONUNBUFFERED=1
|
- PYTHONUNBUFFERED=1
|
||||||
|
- DB_HOST=aicode-db
|
||||||
|
- DB_PORT=3306
|
||||||
# 컨테이너 종료 시 자동 재시작
|
# 컨테이너 종료 시 자동 재시작
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user