Adel
Adel
DDokploy
Created by Adel on 3/25/2025 in #help
Need help: Traefik issue
7 hours later, still couldn't make it work, so i went back to the manual way, you keep the labels in compose:
- traefik.enable=true
- traefik.http.routers.api-app.rule=Host(`api.example.com`)
- traefik.http.routers.api-app.entrypoints=web
- traefik.http.services.api-app.loadbalancer.server.port=3000
- traefik.enable=true
- traefik.http.routers.api-app.rule=Host(`api.example.com`)
- traefik.http.routers.api-app.entrypoints=web
- traefik.http.services.api-app.loadbalancer.server.port=3000
then change the dokploy.yml (you can find it on the traefik window)
http:
routers:
api-router:
rule: Host(`api.example.com`)
service: api-service
entryPoints:
- web
- websecure
front-router:
rule: Host(`example.com`)
service: front-service
entryPoints:
- web
- websecure
services:
api-service:
loadBalancer:
servers:
- url: http://api-container:3000
front-service:
loadBalancer:
servers:
- url: http://frontend-container:8080
http:
routers:
api-router:
rule: Host(`api.example.com`)
service: api-service
entryPoints:
- web
- websecure
front-router:
rule: Host(`example.com`)
service: front-service
entryPoints:
- web
- websecure
services:
api-service:
loadBalancer:
servers:
- url: http://api-container:3000
front-service:
loadBalancer:
servers:
- url: http://frontend-container:8080
2 replies