[Traefik] Create a common network for Traefik and services
This commit is contained in:
parent
478a838dda
commit
a392ea89a9
|
@ -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
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
[providers.docker]
|
||||
watch = true
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
swarmMode = false
|
||||
exposedByDefault = false
|
||||
[providers.file]
|
||||
filename = "/traefik_dynamic.toml"
|
||||
|
|
Loading…
Reference in New Issue
Block a user