I gave shannon the internal url to request (it's http://web.nextreleaseplease.com/login, there is a local dns record in /etc/hosts to 127.0.0.1) but the docker container of course does not have access to this url. How can I set a custom dns record, to reroute it to docker.internal for local testing?
services:
reverse-proxy:
image: "traefik:v3.6.12"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
ports:
- "80:80"
- "443:443"
- "8080:8080"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web-secure.address=:443"
networks:
intranet:
aliases:
- web.nextreleaseplease.com
frontend:
image: node:25.9.0
container_name: web-ui
restart: unless-stopped
ports:
- 5173:5173
environment:
- FRONTEND_ENVIRONMENT_NAME="development"
volumes:
- ./services/frontend:/app
depends_on:
reverse-proxy:
condition: service_started
networks:
- intranet
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=(Host(`web.nextreleaseplease.com`)&&PathPrefix(`/`))"
- "traefik.http.routers.frontend.priority=1"
- "traefik.http.routers.frontend.service=frontend"
- "traefik.http.services.frontend.loadbalancer.server.port=5173"
- "traefik.http.routers.frontend.entrypoints=web,web-secure"
command: ["sh", "-c", "cd /app && npm install && npm run dev"]
why this approach? Because then I can have everything without cors issues and I can also route depending services like grafana to it
I gave shannon the internal url to request (it's http://web.nextreleaseplease.com/login, there is a local dns record in /etc/hosts to 127.0.0.1) but the docker container of course does not have access to this url. How can I set a custom dns record, to reroute it to docker.internal for local testing?
why this approach? Because then I can have everything without cors issues and I can also route depending services like grafana to it