瀏覽代碼

change network mode to host

tuanchris 3 月之前
父節點
當前提交
76eef82604
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      docker-compose.yml

+ 3 - 2
docker-compose.yml

@@ -3,8 +3,9 @@ services:
     build: . # Uncomment this if you need to build
     image: ghcr.io/tuanchris/dune-weaver:main # Use latest production image
     restart: always
-    ports:
-      - "8080:8080" # Map port 8080 of the container to 8080 of the host (access via http://localhost:8080)
+    # ports:
+    #   - "8080:8080" # Map port 8080 of the container to 8080 of the host (access via http://localhost:8080)
+    network_mode: "host" # Use host network to access Hyperion on localhost
     volumes:
       - .:/app
       # Mount timezone file from host for Still Sands scheduling