Please look at the post above.
There is services that include the traefik image and config and then at the base level a network config as well. This one will link the external network to the one used in the docker-compose.yml
.
Please look at the post above.
There is services that include the traefik image and config and then at the base level a network config as well. This one will link the external network to the one used in the docker-compose.yml
.
Youâve set your compose version at the top of your file to version: "3"
external
is a version: "2"
config option. Think they changed it for 3+
The issue is not the version. svaguilav had copied the network section into the services section which was not expected and caused an error.
For some reason I had to reboot my router, but this did the trick. Thanks!
Iâve the same âBad gatewayâ error, and Iâve used the same config as you @TheNotSoSmartHome to check my configuration but itâs same.
Thatâs pretty wired and Iâve been busting my brains over it for the past few nightsâŚ
Behind Traefik too, wo the http section all working fine, as soon as add it, itâs doesnât work.
Configuration.yaml
http:
base_url: https://xxxxxxxxxxxxx
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
port: 8123
use_x_forwarded_for: true
trusted_proxies:
- 172.18.0.4 # Traefik
Docker compose
version: "3.7"
########################### NETWORKS
networks:
t2_proxy:
external:
name: t2_proxy
default:
driver: bridge
########################### SERVICES
services:
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
restart: always
networks:
- t2_proxy
volumes:
- /data/home-assistant/config:/config
- /data/home-assistant/ssl:/ssl
- /data/home-assistant/share:/share
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyACM0:/dev/ttyACM0
environment:
- TZ=$TZ
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.homeassistant-rtr.entrypoints=https"
- "traefik.http.routers.homeassistant-rtr.rule=Host(`homeassistant.$DOMAINNAME`)"
- "traefik.http.routers.homeassistant-rtr.tls=true"
## Middlewares
- "traefik.http.routers.homeassistant-rtr.middlewares=chain-oauth@file" # Google OAuth 2.0
## HTTP Services
- "traefik.http.routers.homeassistant-rtr.service=homeassistant-svc"
- "traefik.http.services.homeassistant-svc.loadbalancer.server.port=8123"
Do Iâve missed something ?
Thanks for your help !
Solved.
In http conf itâs require to not configure port and ssl