traefik

时间:2019-05-20 15:05:55

标签: docker docker-compose traefik

我想使用docker为多个php(drupal / symfony)项目设置本地开发。重要说明:我正在Windows 10 Pro和Docker Desktop上运行,并获得了公司代理。

我已经为我的第一个项目设置了dockerfile,并且由于这些项目位于多个git存储库中,因此我希望能够快速更改项目和/或一次处理多个项目。因此,我认为Traefik可能非常适合此操作,所需的每个容器都可以在不暴露端口的情况下运行,并且traefik可以根据域名(在主机文件中设置)进行分配

我尝试使用traefik标签和基本traefik配置来设置docker-compose。 Traefik正在1.7版上运行,因为版本2似乎不稳定。 Docker是最新版本(18.09.2)

在仪表板上,主机已定义为我想要的主机,但是当我尝试访问它时,我从公司代理中收到一条错误消息,告诉我该域不存在。

由于我要运行多个码头工人组成,因此我没有在码头工人中设置traefik,而是从releases page运行它

这是我的docker-compose

version: "3.7"
services:
  starterkit:
    container_name: starterkit
    build: .docker/
    depends_on:
      - starterkit_bdd
    volumes:
      - ./:/var/www/html
    labels:
      - traefik.backend=starterkit
      - traefik.enable=true
      - traefik.docker.network=web
      - traefik.frontend.passHostHeader=true
      - traefik.frontend.rule=Host:dev.starterkit.fr
      - traefik.entryPoint=http
    networks:
      - internal
      - web
  starterkit_bdd:
    image: mariadb:10.4
    restart: always
    container_name: starterkit_bdd
    environment:
      MYSQL_ROOT_PASSWORD: "starterkit"
      MYSQL_DATABASE: "starterkit"
      MYSQL_USER: "starterkit"
      MYSQL_PASSWORD: "starterkit"
    networks:
      - internal

networks:
  web:
    external: true
  internal:
    external: false

这是traefik.toml配置

debug = true
logLevel = "DEBUG"

defaultEntryPoints = ["http"]

[entryPoints]
    [entryPoints.http]
    address = ":80"
    [entryPoints.ping]
    address = "127.0.0.1:8082"
    [entrypoints.api]
    address="127.0.0.1:8081"

[traefikLog]
# Sets the filepath for the traefik log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.
#
# Optional
# Default: os.Stdout
#
# filePath = "log/traefik.log"

# Format is either "json" or "common".
# format = "common"

[accessLog]

# Sets the file path for the access log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.
#
# Optional
# Default: os.Stdout
#
filePath = "log/log.txt"

# Format is either "json" or "common".
format = "common"

[api]
  entryPoint = "api"
  dashboard = true

[ping]
  entryPoint = "ping"

################################################################
# Docker configuration backend
################################################################

# Enable Docker configuration backend
[docker]
endpoint = "tcp://127.0.0.1:2375"
#domain = "docker.localhost"
exposedByDefault = false
watch = true

[file]

这是主机行127.0.0.1 dev.starterkit.fr

我希望当我进入dev.starterkit.fr时可以访问我的容器。

结果:我从公司代理那里收到以下错误(我认为)

Error while trying to retrieve the URL:
http://dev.starterkit.fr/
The content could not be delivered due to the following condition:
Host not found

这是traefik日志。

2019/05/20 16:58:25 Using high precision timer
INFO[2019-05-20T16:58:26+02:00] Using TOML configuration file C:\Users\s.metayer\Downloads\traefik.sample.toml
INFO[2019-05-20T16:58:26+02:00] Traefik version v1.7.11 built on 2019-04-26_08:42:33AM
DEBU[2019-05-20T16:58:26+02:00] Global configuration loaded {"LifeCycle":{"RequestAcceptGraceTimeout":0,"GraceTimeOut":10000000000},"GraceTimeOut":0,"Debug":true,"CheckNewVersion":true,"SendAnonymousUsage":false,"AccessLogsFile":"","AccessLog":{"file":"log/log.txt","format":"common"},"TraefikLogsFile":"","TraefikLog":{"format":"common"},"Tracing":null,"LogLevel":"DEBUG","EntryPoints":{"api":{"Address":"127.0.0.1:8081","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"WhiteList":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}},"http":{"Address":":80","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"WhiteList":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}},"ping":{"Address":"127.0.0.1:8082","TLS":null,"Redirect":null,"Auth":null,"WhitelistSourceRange":null,"WhiteList":null,"Compress":false,"ProxyProtocol":null,"ForwardedHeaders":{"Insecure":true,"TrustedIPs":null}}},"Cluster":null,"Constraints":[],"ACME":null,"DefaultEntryPoints":["http"],"ProvidersThrottleDuration":2000000000,"MaxIdleConnsPerHost":200,"IdleTimeout":0,"InsecureSkipVerify":false,"RootCAs":null,"Retry":null,"HealthCheck":{"Interval":30000000000},"RespondingTimeouts":null,"ForwardingTimeouts":null,"AllowMinWeightZero":false,"KeepTrailingSlash":false,"Web":null,"Docker":{"Watch":true,"Filename":"","Constraints":null,"Trace":false,"TemplateVersion":2,"DebugLogGeneratedTemplate":false,"Endpoint":"tcp://127.0.0.1:2375","Domain":"","TLS":null,"ExposedByDefault":false,"UseBindPortIP":false,"SwarmMode":false,"Network":"","SwarmModeRefreshSeconds":15},"File":{"Watch":true,"Filename":"","Constraints":null,"Trace":false,"TemplateVersion":0,"DebugLogGeneratedTemplate":false,"Directory":"","TraefikFile":"C:\\Users\\s.metayer\\Downloads\\traefik.sample.toml"},"Marathon":null,"Consul":null,"ConsulCatalog":null,"Etcd":null,"Zookeeper":null,"Boltdb":null,"Kubernetes":null,"Mesos":null,"Eureka":null,"ECS":null,"Rancher":null,"DynamoDB":null,"ServiceFabric":null,"Rest":null,"API":{"EntryPoint":"api","Dashboard":true,"Debug":true,"CurrentConfigurations":null,"Statistics":null},"Metrics":null,"Ping":{"EntryPoint":"ping"},"HostResolver":null}
INFO[2019-05-20T16:58:26+02:00]
Stats collection is disabled.
Help us improve Traefik by turning this feature on :)
More details on: https://docs.traefik.io/basics/#collected-data
INFO[2019-05-20T16:58:26+02:00] Preparing server api &{Address:127.0.0.1:8081 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0002fa380} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s
INFO[2019-05-20T16:58:26+02:00] Preparing server ping &{Address:127.0.0.1:8082 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0002fa340} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s
INFO[2019-05-20T16:58:26+02:00] Starting server on 127.0.0.1:8081
INFO[2019-05-20T16:58:26+02:00] Preparing server http &{Address::80 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc0002fa360} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s
INFO[2019-05-20T16:58:26+02:00] Starting server on 127.0.0.1:8082
INFO[2019-05-20T16:58:26+02:00] Starting server on :80
INFO[2019-05-20T16:58:26+02:00] Starting provider configuration.ProviderAggregator {}
INFO[2019-05-20T16:58:26+02:00] Starting provider *docker.Provider {"Watch":true,"Filename":"","Constraints":null,"Trace":false,"TemplateVersion":2,"DebugLogGeneratedTemplate":false,"Endpoint":"tcp://127.0.0.1:2375","Domain":"","TLS":null,"ExposedByDefault":false,"UseBindPortIP":false,"SwarmMode":false,"Network":"","SwarmModeRefreshSeconds":15}
INFO[2019-05-20T16:58:26+02:00] Starting provider *file.Provider {"Watch":true,"Filename":"","Constraints":null,"Trace":false,"TemplateVersion":0,"DebugLogGeneratedTemplate":false,"Directory":"","TraefikFile":"C:\\Users\\s.metayer\\Downloads\\traefik.sample.toml"}
DEBU[2019-05-20T16:58:26+02:00] Configuration received from provider file: {}
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on 127.0.0.1:8082
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on :80
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on 127.0.0.1:8081
DEBU[2019-05-20T16:58:26+02:00] Provider connection established with docker 18.09.2 (API 1.39)
DEBU[2019-05-20T16:58:26+02:00] originLabelsmap[com.docker.compose.config-hash:10af19083437a2d5feb149d9de030077b680750c3843e8ac671bfea67d44c3df com.docker.compose.oneoff:False com.docker.compose.project:z_starterkit com.docker.compose.service:starterkit com.docker.compose.version:1.23.2 traefik.frontend.passHostHeader:true traefik.frontend.rule:Host:dev.starterkit.fr com.docker.compose.container-number:1 traefik.backend:starterkit traefik.docker.network:web traefik.enable:true traefik.entryPoint:http]
DEBU[2019-05-20T16:58:26+02:00] allLabelsmap[:map[traefik.backend:starterkit traefik.docker.network:web traefik.enable:true traefik.entryPoint:http traefik.frontend.rule:Host:dev.starterkit.fr traefik.frontend.passHostHeader:true]]
DEBU[2019-05-20T16:58:26+02:00] Filtering disabled container /starterkit_bdd
DEBU[2019-05-20T16:58:26+02:00] originLabelsmap[com.docker.compose.service:starterkit com.docker.compose.version:1.23.2 traefik.frontend.passHostHeader:true traefik.frontend.rule:Host:dev.starterkit.fr com.docker.compose.config-hash:10af19083437a2d5feb149d9de030077b680750c3843e8ac671bfea67d44c3df com.docker.compose.oneoff:False com.docker.compose.project:z_starterkit traefik.enable:true traefik.entryPoint:http com.docker.compose.container-number:1 traefik.backend:starterkit traefik.docker.network:web]
DEBU[2019-05-20T16:58:26+02:00] allLabelsmap[:map[traefik.docker.network:web traefik.enable:true traefik.entryPoint:http traefik.backend:starterkit traefik.frontend.passHostHeader:true traefik.frontend.rule:Host:dev.starterkit.fr]]
DEBU[2019-05-20T16:58:26+02:00] Backend backend-starterkit: no load-balancer defined, fallback to 'wrr' method
DEBU[2019-05-20T16:58:26+02:00] Configuration received from provider docker: {"backends":{"backend-starterkit":{"servers":{"server-starterkit-88f9d9f951dd584cd0a102fa8e4dc8ff":{"url":"http://172.20.0.2:80","weight":1}},"loadBalancer":{"method":"wrr"}}},"frontends":{"frontend-Host-dev-starterkit-fr-0":{"entryPoints":["http"],"backend":"backend-starterkit","routes":{"route-frontend-Host-dev-starterkit-fr-0":{"rule":"Host:dev.starterkit.fr"}},"passHostHeader":true,"priority":0,"basicAuth":null}}}
DEBU[2019-05-20T16:58:26+02:00] Wiring frontend frontend-Host-dev-starterkit-fr-0 to entryPoint http
DEBU[2019-05-20T16:58:26+02:00] Creating backend backend-starterkit
DEBU[2019-05-20T16:58:26+02:00] Adding TLSClientHeaders middleware for frontend frontend-Host-dev-starterkit-fr-0
DEBU[2019-05-20T16:58:26+02:00] Creating load-balancer wrr
DEBU[2019-05-20T16:58:26+02:00] Creating server server-starterkit-88f9d9f951dd584cd0a102fa8e4dc8ff at http://172.20.0.2:80 with weight 1
DEBU[2019-05-20T16:58:26+02:00] Creating route route-frontend-Host-dev-starterkit-fr-0 Host:dev.starterkit.fr
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on 127.0.0.1:8082
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on :80
INFO[2019-05-20T16:58:26+02:00] Server configuration reloaded on 127.0.0.1:8081
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/roundrobin/rr: begin ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/roundrobin/rr: Forwarding this request to URL  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}" ForwardURL="http://172.20.0.2:80"
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward: begin ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"172.20.0.2:80\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward/http: begin ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"172.20.0.2:80\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"
DEBU[2019-05-20T16:58:28+02:00] Upstream ResponseWriter of type *pipelining.writerWithoutCloseNotify does not implement http.CloseNotifier. Returning dummy channel.
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward/http: Round trip: http://172.20.0.2:80, code: 502, Length: 2579, duration: 85.4446ms
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward/http: completed ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"172.20.0.2:80\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward: completed ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"172.20.0.2:80\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/roundrobin/rr: completed ServeHttp on request  Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\"],\"Accept-Encoding\":[\"gzip, deflate\"],\"Accept-Language\":[\"fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,da;q=0.6\"],\"Cache-Control\":[\"max-age=0\"],\"Connection\":[\"keep-alive\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"dev.starterkit.fr\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"127.0.0.1:51888\",\"RequestURI\":\"/\",\"TLS\":null}"

从我看到的日志来看,这两行似乎是问题所在。

DEBU[2019-05-20T16:58:28+02:00] Upstream ResponseWriter of type *pipelining.writerWithoutCloseNotify does not implement http.CloseNotifier. Returning dummy channel.
DEBU[2019-05-20T16:58:28+02:00] vulcand/oxy/forward/http: Round trip: http://172.20.0.2:80, code: 502, Length: 2579, duration: 85.4446ms

但是我不明白为什么我不工作。

能给我一些帮助吗?

预先感谢!

0 个答案:

没有答案