Agent Skills
› NeverSight/learn-skills.dev
› docker-deployment
docker-deployment
GitHub用于Docker容器部署,集成Nginx HTTPS配置与Cloudflare Tunnel。涵盖SSL证书管理、反向代理设置及安全外部访问接入,解决数据持久化、HTTP重定向及故障排查等问题。
Trigger Scenarios
部署带有HTTPS支持的Web应用
配置Nginx反向代理和SSL证书
设置Cloudflare Tunnel实现安全外部访问
解决Docker数据持久化和HTTPS连接问题
Install
npx skills add NeverSight/learn-skills.dev --skill docker-deployment -g -y
SKILL.md
Frontmatter
{
"name": "docker-deployment",
"license": "MIT",
"description": "Docker container deployment with Nginx HTTPS configuration and Cloudflare Tunnel integration. Use when deploying web applications with Docker, configuring SSL\/TLS certificates, setting up Nginx reverse proxy, or integrating with Cloudflare Tunnel for secure external access."
}
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.
Version History
- e0220ca Current 2026-07-05 21:41


