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