mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-03-28 16:36:48 +00:00
chore: adjust traefik
This commit is contained in:
parent
5c311786a1
commit
7987eb8b13
@ -3,7 +3,7 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
image: traefik:v3.3
|
image: traefik:v3.3
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 80:80/tcp # http
|
- 80:80/tcp # http
|
||||||
- 443:443/tcp # https
|
- 443:443/tcp # https
|
||||||
@ -29,7 +29,7 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal:172.17.0.1
|
- host.docker.internal:172.17.0.1
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
@ -123,6 +123,7 @@ providers:
|
|||||||
docker:
|
docker:
|
||||||
watch: true
|
watch: true
|
||||||
network: proxy # Add Your Docker Network Name Here
|
network: proxy # Add Your Docker Network Name Here
|
||||||
|
#endpoint: "tcp://socket-proxy:2375"
|
||||||
# Default host rule to containername.domain.example
|
# Default host rule to containername.domain.example
|
||||||
defaultRule: "Host(`{{ index .Labels \"com.docker.compose.service\"}}.example.com`)" # change 'example.com' to your proxy domain
|
defaultRule: "Host(`{{ index .Labels \"com.docker.compose.service\"}}.example.com`)" # change 'example.com' to your proxy domain
|
||||||
exposedByDefault: false
|
exposedByDefault: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user