[Traefik] Create a common network for Traefik and services

This commit is contained in:
Quentin Duchemin 2020-09-04 14:47:29 +02:00
parent 478a838dda
commit a392ea89a9
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
version: '3.7' version: '3.7'
networks:
proxy:
name: 'proxy'
services: services:
traefik: traefik:
image: traefik:2.3 image: traefik:2.3
@ -13,4 +17,6 @@ services:
- ./traefik.toml:/traefik.toml - ./traefik.toml:/traefik.toml
- ./traefik_dynamic.toml:/traefik_dynamic.toml - ./traefik_dynamic.toml:/traefik_dynamic.toml
- /DATA/docker/traefik/certs:/certs - /DATA/docker/traefik/certs:/certs
networks:
- proxy
restart: unless-stopped restart: unless-stopped

View File

@ -22,7 +22,6 @@
[providers.docker] [providers.docker]
watch = true watch = true
endpoint = "unix:///var/run/docker.sock" endpoint = "unix:///var/run/docker.sock"
swarmMode = false
exposedByDefault = false exposedByDefault = false
[providers.file] [providers.file]
filename = "/traefik_dynamic.toml" filename = "/traefik_dynamic.toml"