File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ function create_docker_compose_file()
125125 rm " ${compose_file} .bak"
126126
127127 echo " Host: ${host} "
128- sed -i.bak " s#Host: .*#Host: ${host} #g" " ${compose_file} "
128+ sed -i.bak " s#Host( .*#Host( \\\` ${host} \\\` ) #g" " ${compose_file} "
129129 rm " ${compose_file} .bak"
130130
131131 echo " Document root: ${document_root} "
Original file line number Diff line number Diff line change @@ -8,12 +8,18 @@ networks:
88
99services :
1010 proxy :
11- image : traefik:v1.7.24
12- command : --api --docker
11+ image : traefik
12+ command :
13+ - --entrypoints.web.address=:80
14+ - --entrypoints.websecure.address=:443
15+ - --providers.docker
16+ - --api
1317 container_name : traefik
1418 labels :
15- - traefik.frontend.rule=Host:traefik
16- - traefik.port=8080
19+ - " traefik.http.routers.proxy.rule=Host(`traefik`)"
20+ - " traefik.http.routers.proxy.entrypoints=websecure"
21+ - " traefik.http.routers.proxy.service=api@internal"
22+ - " traefik.http.routers.proxy.tls=true"
1723 networks :
1824 - webgateway
1925 ports :
Original file line number Diff line number Diff line change 1- debug = false
2-
3- logLevel = " ERROR"
4- defaultEntryPoints = [" https" ," http" ]
5-
6- [entryPoints ]
7- [entryPoints .http ]
1+ [entryPoints .web ]
82 address = " :80"
9- [entryPoints .http .redirect ]
10- entryPoint = " https"
11- [entryPoints .https ]
3+ [entryPoints .web .http .redirections .entryPoint ]
4+ to = " websecure"
5+ scheme = " https"
6+
7+ [entryPoints .websecure ]
128 address = " :443"
13- [entryPoints .https .tls ]
14- [[entryPoints .https .tls .certificates ]]
15- certFile = " /etc/traefik/cert/traefik.crt"
16- keyFile = " /etc/traefik/cert/traefik.key"
179
18- [retry ]
10+ [[tls .certificates ]]
11+ certFile = " /etc/traefik/cert/traefik.crt"
12+ keyFile = " /etc/traefik/cert/traefik.key"
13+
14+ [api ]
15+
16+ [providers .docker ]
17+ endpoint = " unix:///var/run/docker.sock"
18+
19+ [log ]
20+ level = " ERROR"
1921
20- [docker ]
21- endpoint = " unix:///var/run/docker.sock"
22- watch = true
23- exposedByDefault = false
You can’t perform that action at this time.
0 commit comments