mcpField
D
docker-deployment

docker-deployment

github.com/aaaaqwqCloud & DevOps11154 installsUpdated 1w ago
Repository

About docker-deployment

A deployment skill for running Docker web applications behind Nginx with HTTPS. It guides configuration of certificates, persistent data, and Cloudflare Tunnel connections.

Key features

  1. 01Nginx HTTPS and certificate setup
  2. 02Docker Compose certificate mounts
  3. 03Cloudflare Tunnel configuration
  4. 04Persistent data with named volumes
  5. 05HTTPS troubleshooting

Use cases

  1. 01Deploying a Docker web app with HTTPS
  2. 02Keeping application data across container restarts
  3. 03Diagnosing HTTPS and tunnel configuration issues

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aaaaqwq/agi-super-team --skill docker-deployment

After installing, type/docker-deploymentin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
cf-origin-cert.md
cf-tunnel.md
data-persistence.md
nginx-https.md

Details

From the project README

Docker Deployment with Nginx HTTPS

Quick Start

For Docker web application deployment with HTTPS support:

  1. Configure Nginx with SSL certificates (see nginx-https.md)
  2. Set up docker-compose.yml with certificate volume mounting
  3. Configure Cloudflare Tunnel to connect external domain to local container

Common Tasks

TaskReference
Nginx HTTPS configurationnginx-https.md
Cloudflare Origin Certificatecf-origin-cert.md
Docker data persistencedata-persistence.md
Cloudflare Tunnel setupcf-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.

Comments

Markdown supported