From 903fcc7575d3dffb3bdc3f5a19783c6c3180ecb7 Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
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 d6bb28bb..d4a139e9 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 4252992b..d8768833 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"
-- 
GitLab