Use dokploy-network for Traefik, add traefik.docker.network label
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

This commit is contained in:
Manohar Gupta 2026-05-13 21:45:28 +05:30
parent 4780ea3d08
commit 11579efb55

View file

@ -21,6 +21,7 @@ services:
- ./data:/app/data - ./data:/app/data
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.api.rule=Host(`model.manohargupta.com`) && PathPrefix(`/api`)" - "traefik.http.routers.api.rule=Host(`model.manohargupta.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.api.entrypoints=web" - "traefik.http.routers.api.entrypoints=web"
- "traefik.http.services.api.loadbalancer.server.port=8000" - "traefik.http.services.api.loadbalancer.server.port=8000"
@ -53,6 +54,7 @@ services:
- NEXT_PUBLIC_API_URL=http://api:8000 - NEXT_PUBLIC_API_URL=http://api:8000
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.web.rule=Host(`model.manohargupta.com`)" - "traefik.http.routers.web.rule=Host(`model.manohargupta.com`)"
- "traefik.http.routers.web.entrypoints=web" - "traefik.http.routers.web.entrypoints=web"
- "traefik.http.services.web.loadbalancer.server.port=3000" - "traefik.http.services.web.loadbalancer.server.port=3000"
@ -63,7 +65,8 @@ networks:
internal: internal:
internal: true internal: true
web: web:
driver: bridge name: dokploy-network
external: true
volumes: volumes:
redis_data: redis_data: