Run Containly behind a reverse proxy
Containly-Team12.10.20260 AntwortenAuf Deutsch lesen
-
For access from outside your own network, put a reverse proxy with TLS in front of Containly, for example Traefik, Caddy or nginx.
Settings in Containly
- Bind the port to the host only:
"127.0.0.1:8420:8420"underports:indocker-compose.yml. - In
.env:
CONTAINLY_SECURE_COOKIES=true CONTAINLY_TRUST_PROXY=true CONTAINLY_PUBLIC_URL=https://containly.example.comCONTAINLY_SECURE_COOKIES=truebelongs behind HTTPS only.CONTAINLY_TRUST_PROXY=truemakes Containly read the proxy'sX-Forwarded-*headers.CONTAINLY_PUBLIC_URLis optional: notification e-mails then link to that address. Restart withdocker compose up -dafterwards.Let WebSockets through
Live logs, stats, the console and deploy output use WebSockets, and the agent on remote hosts connects over WSS. Your proxy must forward WebSocket connections; with nginx that means passing the
UpgradeandConnectionheaders.Common mistakes
- Black page over HTTP:
CONTAINLY_SECURE_COOKIES=trueis set, but you open Containly without HTTPS. Set it tofalseor open it through the proxy with HTTPS. - Proxy or firewall blocks: since Containly 2.3.0 the app then shows "Containly is not reachable" with the reason, for example "blocked" or "proxy sign-in".
More in the install guide. When you share your proxy config here, replace domains and addresses you do not want to show.
- Bind the port to the host only: