Docker compose Gitlab通过traefik与Docker compose

Docker compose Gitlab通过traefik与Docker compose,docker-compose,gitlab,traefik,Docker Compose,Gitlab,Traefik,几天来,我一直试图通过docker和Traefik来运行gitlab。我找到了几个关于它的话题,但没有一个真正解决了我的问题。所以今天我想开始一个话题 我通过以下例子帮助了自己很多: 还有我的traefik.toml debug = false logLevel = "INFO" defaultEntryPoints = ["https", "http"] [entryPoints] [entryPoints.http] address = ":80" [entryPoint

几天来,我一直试图通过docker和Traefik来运行gitlab。我找到了几个关于它的话题,但没有一个真正解决了我的问题。所以今天我想开始一个话题

我通过以下例子帮助了自己很多:

还有我的traefik.toml

debug = false

logLevel = "INFO"
defaultEntryPoints = ["https", "http"]

[entryPoints]
  [entryPoints.http]
  address = ":80"
    [entryPoints.http.redirect]
      entryPoint = "https"
  [entryPoints.https]
  address = ":443"
    [entryPoints.https.tls]

[retry]

[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "domain.com"
watch = true
exposedByDefault = false

[acme]
email = "contact@monsite.co"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
  entryPoint = "http"
我得到了一个安全警告和一份由Traefik自行签署的证书


而且,如果我不顾浏览器的警告接受了风险,我会得到一个404页面未找到。

这是下一行的语法错误:

-  "traefik.frontend.rule=Host:https://gitlab.domain.com"
不应指定协议。 该行必须对应于:

- "traefik.frontend.rule=Host:gitlab.domain.com"
- "traefik.frontend.rule=Host:gitlab.domain.com"