Преглед изворни кода

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
     build: . # Uncomment this if you need to build
     image: ghcr.io/tuanchris/dune-weaver:main # Use latest production image
     image: ghcr.io/tuanchris/dune-weaver:main # Use latest production image
     restart: always
     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:
     volumes:
       - .:/app
       - .:/app
       # Mount timezone file from host for Still Sands scheduling
       # Mount timezone file from host for Still Sands scheduling