From 5ceaff9706ffced73907ebbf06d8388a6f9127dd Mon Sep 17 00:00:00 2001 From: boxswapper Date: Tue, 2 Sep 2025 16:47:39 -0600 Subject: [PATCH] added network commands to compose --- traefik/config/traefik.yml | 15 +++++++-------- traefik/docker-compose.yml | 13 +++++++++++-- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/traefik/config/traefik.yml b/traefik/config/traefik.yml index c13ebcd..22825f4 100755 --- a/traefik/config/traefik.yml +++ b/traefik/config/traefik.yml @@ -10,8 +10,8 @@ # Global configuration ################################################################ global: - checkNewVersion: true - sendAnonymousUsage: true + checkNewVersion: false + sendAnonymousUsage: false ################################################################ # EntryPoints configuration @@ -36,14 +36,13 @@ entryPoints: # Enabled by default and log to stdout # # Optional -# -#log: +log: # Log level # # Optional # Default: "ERROR" # -# level: DEBUG + level: DEBUG # Sets the filepath for the traefik log. If not specified, stdout will be used. # Intermediate directories are created if necessary. @@ -94,20 +93,20 @@ entryPoints: # # Optional # -#api: +api: # Enable the API in insecure mode # # Optional # Default: false # -# insecure: true + insecure: true # Enabled Dashboard # # Optional # Default: true # -# dashboard: false + dashboard: true ################################################################ # Ping configuration diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index 5993379..ea2d65e 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -1,4 +1,6 @@ -name: +## Crate network first because it is external:true +#podman network create frontend + services: traefik: container_name: traefik @@ -6,5 +8,12 @@ services: - 8080:8080 - 80:80 volumes: - - ./config/traefik.yml:/etc/traefik/traefik.yml:z + - ./config/traefik.yml:/etc/traefik/traefik.yml:ro image: traefik:v3.5 + restart: unless-stopped + networks: + - frontend + +networks: + frontend: + external: true \ No newline at end of file