From a392ea89a9508bd292748e1915020fed05fc409e Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Fri, 4 Sep 2020 14:47:29 +0200 Subject: [PATCH] [Traefik] Create a common network for Traefik and services --- pica-traefik/docker-compose.yml | 6 ++++++ pica-traefik/traefik.toml | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pica-traefik/docker-compose.yml b/pica-traefik/docker-compose.yml index d6bb28b..d4a139e 100644 --- a/pica-traefik/docker-compose.yml +++ b/pica-traefik/docker-compose.yml @@ -1,5 +1,9 @@ version: '3.7' +networks: + proxy: + name: 'proxy' + services: traefik: image: traefik:2.3 @@ -13,4 +17,6 @@ services: - ./traefik.toml:/traefik.toml - ./traefik_dynamic.toml:/traefik_dynamic.toml - /DATA/docker/traefik/certs:/certs + networks: + - proxy restart: unless-stopped diff --git a/pica-traefik/traefik.toml b/pica-traefik/traefik.toml index 4252992..d876883 100644 --- a/pica-traefik/traefik.toml +++ b/pica-traefik/traefik.toml @@ -22,7 +22,6 @@ [providers.docker] watch = true endpoint = "unix:///var/run/docker.sock" - swarmMode = false exposedByDefault = false [providers.file] filename = "/traefik_dynamic.toml"