chore: Update network configuration to use host network instead of web network

This commit is contained in:
2024-05-18 16:14:35 +08:00
parent cdcf9d6493
commit 13247fb519
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Environment variables for docker-compose.yml # Environment variables for docker-compose.yml
LOG_LEVEL="DEBUG" LOG_LEVEL="DEBUG"
NETWORK="host" NETWORK="web"
TZ="Asia/Singapore" TZ="Asia/Singapore"
## dashboard configs ## dashboard configs
HOST="furyhawk.lol" HOST="furyhawk.lol"
+1 -1
View File
@@ -561,6 +561,6 @@ providers:
filename: /etc/traefik/traefik.yml filename: /etc/traefik/traefik.yml
watch: true watch: true
docker: docker:
network: host network: web
exposedByDefault: false exposedByDefault: false
endpoint: "unix:///var/run/docker.sock" endpoint: "unix:///var/run/docker.sock"
+3 -1
View File
@@ -377,6 +377,8 @@ services:
- "${LOG_PATH:-./logs}:/logs" - "${LOG_PATH:-./logs}:/logs"
- production_traefik:/etc/traefik/acme:z - production_traefik:/etc/traefik/acme:z
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
extra_hosts:
- "host.docker.internal:host-gateway"
networks: networks:
- net - net
- default - default
@@ -393,4 +395,4 @@ services:
networks: networks:
net: net:
external: true external: true
name: ${NETWORK:-host} name: ${NETWORK:-web}