I am working on setting up docker to work behind the corporate proxy and am having issues getting traefik to route to my nginx container. I am hoping someone can point me in the right direction. I have tried a few values in the noProxy settings (docker.blart.ca, *.blart.ca, .blart.ca, 172.0.0.0/8) and I keep getting the corporate proxy page being returned instead of my nginx page. I haven't been using traefik for long so its possible I have a wrong setting somewhere.
I can see the noProxy value being set in the traefik container as "no_proxy" and "NO_PROXY".
The outbound proxy is working inside the containers.
docker win version 18.09.2
traefik version 1.17.12
config.json
"proxies":
{
"default":
{
"httpProxy": "http://webfilter1.foo.ca:3128",
"httpsProxy": "https://webfilter1.foo.ca:3128",
"noProxy":"*.blart.ca"
}
}
docker-compose.yml
version: "3"
services:
web:
image: nginx
container_name: ssl_web
volumes:
- ./sites.conf:/etc/nginx/conf.d/default.conf
- ./index1.html:/var/www/sites1/index.html
labels:
- 'traefik.enable=true'
- 'traefik.backend=ssl_web'
- 'traefik.web.frontend.rule=Host:docker.blart.ca'
- 'traefik.web.frontend.entryPoints=http'
- 'traefik.web.port=80'
proxy:
image: traefik:alpine
container_name: ssl_traefik
ports:
- '80:80'
- '8080:8080'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/traefik.toml
labels:
- 'traefik.enable=true'
- 'traefik.backend=ssl_traefik'
- 'traefik.port=8080'
- 'traefik.frontend.rule=Host:docker.blart.ca'
- 'traefik.frontend.entryPoints=traefik'
traefik.toml
debug = false
loglevel = "INFO"
[accessLog]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.traefik]
address=":8080"
[api]
entryPoint="traefik"
dashboard=true
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "blart.ca"
watch = true
exposedbydefault = false
sites.conf
server {
listen 80 default_server;
listen [::] default_server;
deny all;
return 444;
}
server {
listen 80;
server_name docker.blart.ca;
root /var/www/sites1;
}