Hey everyone! I've set up a bunch of Docker containers on my Ubuntu VPS, including Nextcloud, Portainer, wg-easy, and AdGuard. The issue I'm facing is that I keep forgetting the port numbers for each container when I want to access them. Is there a way to make accessing these containers easier, especially since I know I'll forget the ports over time?
3 Answers
I really recommend using jwilder/nginx-proxy. It's super easy to configure and perfect for your needs. If you have a domain, go for a wildcard certificate for something like *.yourdomain.com. This way, you can set up subdomains for each container, like `jackett.yourdomain.com` pointing to the corresponding Docker container, and avoid exposing ports directly.
I keep my containers organized by having a bookmarks folder for quick access. Just a tip: make sure your server has a static IP address so that you don’t run into connection issues later!
What you need is a reverse proxy! It simplifies access to your containers by allowing you to route traffic based on domain names rather than port numbers. Some popular options are nginx, Caddy, and Traefik. You can set them up to manage your container communication more seamlessly.
Related Questions
Glassmorphism CSS Generator with Live Preview
Remove Duplicate Items From List
EAN Validator
EAN Generator
Cloudflare Cache Detector
HTTP Status Code Check