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