Which port, and why
Both numbers are right, for different routes to the same place.
Set it up
1
Add Traefik to your Docker Compose file
2
Tell PostQueen her address
Routing alone is not enough. She also has to know the address people use, because sign-in
origins and every social network’s return address are built from it. In the same
Apply it with
docker-compose.yaml, on the postqueen service:Keep the
/api suffix, and leave no trailing slashes.docker compose down && docker compose up -d.3
Check it
HTTP/2 200 means the router and PostQueen are both working.Next steps
Caddy
The shorter path, with certificates handled for you.
Nginx
The right choice when you already run Nginx for other things.
WebSockets and dev tunnels
Path routing for split deployments, and HMR behind a tunnel.
Self-host gotchas
What tends to break once she is behind a proxy.