docker-deployment
18
总安装量
5
周安装量
#19600
全站排名
安装命令
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill docker-deployment
Agent 安装分布
replit
5
openclaw
5
mcpjam
4
openhands
4
windsurf
4
zencoder
4
Skill 文档
Docker Deployment with Nginx HTTPS
Quick Start
For Docker web application deployment with HTTPS support:
- Configure Nginx with SSL certificates (see nginx-https.md)
- Set up docker-compose.yml with certificate volume mounting
- Configure Cloudflare Tunnel to connect external domain to local container
Common Tasks
| Task | Reference |
|---|---|
| Nginx HTTPS configuration | nginx-https.md |
| Cloudflare Origin Certificate | cf-origin-cert.md |
| Docker data persistence | data-persistence.md |
| Cloudflare Tunnel setup | cf-tunnel.md |
Architecture Overview
Internet â Cloudflare Edge (HTTPS) â Cloudflare Tunnel â Ubuntu/Docker (Nginx)
Key Principles
- Always use named Docker volumes for persistent data
- Nginx should redirect HTTP (80) to HTTPS (443) in production
- Cloudflare Origin Certificates are for CF-to-origin encryption only
- Tunnel connects to HTTP or HTTPS – configure based on nginx setup
Troubleshooting
HTTPS not working after enabling Cloudflare force HTTPS?
- Check if nginx listens on port 443
- Verify SSL certificates are mounted correctly
- Ensure Cloudflare Tunnel service URL matches (http:// or https://)
Data lost after container restart?
- Check docker-compose.yml uses named volumes, not bind mounts for critical data
- Verify database path points to mounted volume directory
See individual reference files for detailed solutions.