[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'
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user