expose only a specific endpoint to internet
I have a backend service, of which I want to expose only one endpoint to the internet while rest of the endpoints should be accessible internally. How can I achieve this with traefik labels in docker-compose?
E.g: I have
api.saral.club
, this should be accessible by other internal services like frontend. The frontend is deployed as a separate project in the separate container, but in the same dokploy project. The backend is deployed using docker-compose, and it has one additional service apart from fastapi server. I want the endpoint api.saral.club/payment-webhook
to be publicaly accessible from the internet but rest of the endpoints should stay in private.
Here's my docker-compose:
0 Replies