animeic 1 年之前
父節點
當前提交
b08cfa42e7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      docker-compose.yaml

+ 3 - 3
docker-compose.yaml

@@ -3,15 +3,15 @@ version: '3.8'
 # 网络
 networks:
   default:
-    name: default1-network
-    external: false
-    driver: host
+    name: default-network
+    external: true
 
 services:
   # nginx反向代理
   nginx:
     image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
     restart: always
+    network_mode: host 
     ports:
       - 18980:80
     volumes: