User Tools

Site Tools


creating_docker-compose_applications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
creating_docker-compose_applications [2026/10/03 18:11] – admincreating_docker-compose_applications [2026/10/03 18:14] (current) – [8. Publish it through NPM] admin
Line 139: Line 139:
   * Agree to the terms and save   * Agree to the terms and save
  
-Browse to ''https://kuma.example.com''.+Browse to ''[[https://kuma.example.com]]''.
  
-If you'd rather use a wildcard certificate (''*''+==== 9. Repeat for each new app ==== 
 + 
 +  - Deploy a new stack on the ''proxy'' network. 
 +  - Add a Proxy Host with the container name and port. 
 +  - Issue the certificate. 
 + 
 +==== 10. Hardening and upkeep ==== 
 + 
 +  * Close port 81 and 9443 to the internet. Reach them via LAN or VPN (WireGuard/Tailscale), or put them behind an NPM **Access List**. 
 +  * Enable 2FA on NPM and Portainer. 
 +  * Pin image versions ('':1.2.3'' rather than '':latest'') for stability, and update deliberately via **Stacks → Pull and redeploy**. 
 +  * Back up the named volumes (''npm_data'', ''npm_letsencrypt'', and each app's data) plus your compose files. Keep the compose files in a Git repo. 
 +  * Keep the host patched (''unattended-upgrades'') and consider ''fail2ban'' or Cloudflare proxying in front. 
 + 
 +==== 11. Troubleshooting ==== 
 + 
 +^ Symptom ^ Likely cause ^ 
 +| 502 Bad Gateway | Wrong container name/port, or app not on the ''proxy'' network | 
 +| Cert request fails | DNS not pointing at you yet, ports 80/443 not forwarded, or ISP blocks 80 (use DNS challenge) | 
 +| Works on LAN, not outside | Router port forward or NAT hairpin issue; test from mobile data | 
 +| App loads but login/redirects break | Enable Websockets; set the app's "base URL" or "trusted proxy" setting to the public HTTPS URL | 
 +| Container can't resolve another | They don't share a network; check with ''docker network inspect proxy'' |
  
  
creating_docker-compose_applications.1791065513.txt.gz · Last modified: by admin