tweaks to support running in docker

This commit is contained in:
2025-07-07 15:50:47 +09:30
parent 35f57ddb79
commit 0fbcd813ca
6 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ from sqlalchemy.orm import sessionmaker, declarative_base
import pymysql
# Redis configuration
REDIS_HOST = "localhost"
REDIS_HOST = "172.17.0.1"
REDIS_PORT = 6379
# Database configuration
+1 -1
View File
@@ -11,7 +11,7 @@ from websocket_server.shared_state import connected_workers, worker_lock
logger = logging.getLogger("websocket_server")
# API server endpoint
api_server_url = "http://127.0.0.1:5000/api"
api_server_url = "http://172.17.0.1:5000/api"
# Tracks threads for each worker
worker_threads = {}