diff --git a/docker-compose.yml b/docker-compose.yml index 9899da4a..a8191df7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,8 @@ - ORACLE_CLIENT_LIB_DIR=${ORACLE_CLIENT_LIB_DIR:-/app/oracle_client} - ORACLE_HOME=/app/oracle_client/instantclient_19_31 - LD_LIBRARY_PATH=/app/oracle_client/instantclient_19_31:/app/oracle_client - # 鍏佽瀹瑰櫒璁块棶瀹夸富鏈烘湇鍔?(濡傛暟鎹簱) + + # 允许容器访问宿主机服务 (如数据库) extra_hosts: - "host.docker.internal:host-gateway" # 濡傛灉闇€瑕佸湪瀹夸富鏈鸿皟璇曪紝鍙毚闇茬鍙o紱鐢熶骇鐜寤鸿鍙湪缃戠粶鍐呮毚闇?