Rename network

This commit is contained in:
2026-02-01 15:05:54 +08:00
parent 85aa88cb35
commit 441e3e3477

View File

@@ -3,8 +3,8 @@ services:
image: traefik:v3.6
networks:
# Connect to the 'traefik_proxy' overlay network for inter-container communication across nodes
- traefik_proxy
# Connect to the 'proxy' overlay network for inter-container communication across nodes
- proxy
ports:
# Expose Traefik's entry points to the Swarm
@@ -120,7 +120,7 @@ services:
whoami:
image: traefik/whoami
networks:
- traefik_proxy
- proxy
deploy:
labels:
# Enable Service discovery for Traefik
@@ -137,6 +137,6 @@ services:
# Define the overlay network for Swarm
networks:
traefik_proxy:
proxy:
driver: overlay
attachable: true