Hello ,
Hope someone can help me with this , I have tried mostly everything and got no results .
I have an old server which is currently hosting some web pages databases and emails ( NGINX, Mariadb , Roundcube and plex) . I started playing with and old machine just to learn and understand the marvel that docker is . Soon enough i discovered Traefik and im traking to route the domains of the old server through Traefik without succes.
I have my ports open in the route 80 and 443 , i have the dns provider pointing to my ip .
this is my docker-compose
version: '3'
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
networks:
- trafik_default
labels:
- traefik.http.routers.my-app.rule=Host(`xxxx.traefik.localhost`)
command:
--api.insecure=true --providers.docker
--providers.file.directory=/dynamic_config
--providers.file.watch=true
--providers.docker.network=trafik_default
--entrypoints.http.address=:80
--entrypoints.https.address=:443
ports:
# The HTTP port
- "80:80"
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
labels:
# Enable Traefik for this service, to make it available in the public network
- traefik.enable=true
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./dynamic_config:/dynamic_config:ro
networks:
trafik_default:
external: true
and this is my dynamic_ config that supposedly routes to the old server .
http:
routers:
route-to-local-ip:
rule: "Host(`http://mydomain.com`)"
service: route-to-local-ip-service
priority: 1000
entryPoints:
- http
services:
route-to-local-ip-service:
loadBalancer:
servers:
- url: "http://192.168.0.144"
what i am missing ?
I really appreciate your help