シンプルなコンテナでtraefik付きのキャディーサーバーを使用しようとしています。 ドメインを訪問すると、不幸にも私はGateway Timeout
エラーが発生します。私はエラーがtraefikまたは私のコンテナに起因するのかどうかわかりません。traefik + caddy>ゲートウェイのタイムアウト
マイドッカ・コンファイル:
version: '2'
#
# [ server stack ]
#
services:
web:
image: abiosoft/caddy
container_name: caddy
restart: unless-stopped
networks:
- caddy_network
ports:
- 2015:2015
volumes:
# app
- ./localhost:/srv
# configs
- ./config/Caddyfile:/etc/Caddyfile
labels:
- "traefik.frontend.rule=Host:domain.com"
- "traefik.port=2015"
- "traefik.backend=domain.com"
- "traefik.frontend.entryPoints=http,https"
- "traefik.enable=true"
#
# [ networks definition ]
#
networks:
caddy_network:
driver: bridge
マイキャディファイル:
0.0.0.0:2015
browse
gzip
log stdout
errors stderr
情報については、LETの暗号certificatが完全traefikによって生成されます。
ポートの設定に問題はありますか?
[編集] traefikの設定:
################################################################
# Global configuration
################################################################
defaultEntryPoints = ["http", "https"]
logLevel = "DEBUG"
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "[email protected]"
storageFile = "/etc/traefik/acme/acme.json"
entryPoint = "https"
OnHostRule = true
onDemand = true
[[acme.domains]]
main = "domain.com"
sans = ["docker.domain.com", "traefik.domain.com"]
################################################################
# Web configuration backend
################################################################
[web]
address = ":8080"
# MD5
[web.auth.basic]
users = ["admin:xxx"]
################################################################
# Docker configuration backend
################################################################
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "traefik.domain.com"
watch = true
# Tous les conteneurs seront utilisables par Traefik
# Pour qu'il ne le soit pas, il est nécessaire d'ajouter le label "traefik.enable=false"
# lors de la création du conteneur
exposedbydefault = false
は助けを事前にありがとうございます。
JB
あなたはポート2015年キャディに到達することはできますか? – BMitch
はい! 'xxx.xxx.xxx.yy:2015'> OK ' domain.com:2015'> OK しかし 'domain.com'> KO – jbo
は、あなたのTraefik設定ファイルを共有し、DEBUGレベルの出力を含めることができますあなたのログのしてください? –