Settings for Traefik with 2 services in Docker

Hello, could somebody help me with my settings? I am trying to setup 1 Docker-Compose with Traefik, and then 2 other Docker-compose files, each with its own frontend. This is on my server so I can have multiple websites running there at once (I want to add a couple more later). According to what I have read Traefik should be a good solution for that, but I cannot manage to make it work, I have been looking for hours now... I am getting timeouts on my websites.

I am able to wget my frontend index.html for both websites from within the Traefik container, so I guess I am pretty close, but just not there.

Traefik docker-compose.yml: View paste BF6Q
Website 1 docker-compose.yml: View paste WNRA
Website 2 docker-compose.yml: View paste 7UDQ

The thing is that sometimes when trying some settings it seem to work, and then when refreshing, it doesn't. Seemingly with the same settings...

Hope somebody can direct me into the right direction :slight_smile:

Set .docker.network on provider in static config (doc) or on labels of target service.

Traefik Docker configuration discovery only fetches target IPs of the target services, but doesn’t check if Traefik is within the same network. Usually you see a "bad gateway" in the logs.

Yes, that worked! Thank you!