[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FHRJDZTXYM7EYZ5KX6DH5J":3,"skill-same:01M6FHRJDZTXYM7EYZ5KX6DH5J":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6FHRJDZTXYM7EYZ5KX6DH5J","docker-compose-orchestration",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fskillshub-team\u002Fgap-fillers\u002Fdocker-compose-orchestration\u002FSKILL.md",[],[18,19,20,21,22],"docker","orchestration","docker compose","compose","docker compose orchestration","2026-11-10 10:12:30",false,"# Docker Compose Orchestration\n\nUse when orchestrating multi-container applications with Docker Compose (v2+).\n\n## Compose File Structure\n```yaml\n# compose.yaml (preferred over docker-compose.yml)\nname: myapp\n\nservices:\n  app:\n    build:\n      context: .\n      dockerfile: Dockerfile\n      target: production\n    ports:\n      - \"3000:3000\"\n    environment:\n      - NODE_ENV=production\n      - DATABASE_URL=postgres:\u002F\u002Fuser:pass@db:5432\u002Fmyapp\n    depends_on:\n      db:\n        condition: service_healthy\n      redis:\n        condition: service_started\n    healthcheck:\n      test: [\"CMD\", \"curl\", \"-f\", \"http:\u002F\u002Flocalhost:3000\u002Fhealth\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n      start_period: 40s\n    restart: unless-stopped\n    deploy:\n      resources:\n        limits:\n          cpus: '2'\n          memory: 1G\n        reservations:\n          memory: 512M\n\n  db:\n    image: postgres:16-alpine\n    volumes:\n      - postgres_data:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n      - .\u002Finit.sql:\u002Fdocker-entrypoint-initdb.d\u002Finit.sql\n    environment:\n      POSTGRES_USER: user\n      POSTGRES_PASSWORD: pass\n      POSTGRES_DB: myapp\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U user -d myapp\"]\n      interval: 10s\n      timeout: 5s\n      retries: 5\n    ports:\n      - \"5432:5432\"\n\n  redis:\n    image: redis:7-alpine\n    command: redis-server --appendonly yes --maxmemory 256mb\n    volumes:\n      - redis_data:\u002Fdata\n\n  nginx:\n    image: nginx:alpine\n    ports:\n      - \"80:80\"\n      - \"443:443\"\n    volumes:\n      - .\u002Fnginx.conf:\u002Fetc\u002Fnginx\u002Fnginx.conf:ro\n      - .\u002Fcerts:\u002Fetc\u002Fnginx\u002Fcerts:ro\n    depends_on:\n      - app\n\n  worker:\n    build: .\n    command: node worker.js\n    environment:\n      - REDIS_URL=redis:\u002F\u002Fredis:6379\n    depends_on:\n      - redis\n\nvolumes:\n  postgres_data:\n  redis_data:\n\nnetworks:\n  default:\n    driver: bridge\n```\n\n## Key Commands\n```bash\ndocker compose up -d              # Start all services detached\ndocker compose up -d --build      # Rebuild and start\ndocker compose down               # Stop and remove containers\ndocker compose down -v            # Also remove volumes\ndocker compose logs -f app        # Follow logs for service\ndocker compose exec app sh        # Shell into running container\ndocker compose ps                 # List running services\ndocker compose pull               # Pull latest images\ndocker compose config             # Validate and view merged config\n```\n\n## Environment Management\n```yaml\n# Use .env file (auto-loaded)\nservices:\n  app:\n    env_file:\n      - .env\n      - .env.local  # overrides\n    environment:\n      - NODE_ENV=${NODE_ENV:-production}\n```\n\n## Multi-stage Profiles\n```yaml\nservices:\n  app:\n    profiles: []  # always started\n  debug:\n    profiles: [\"dev\"]\n    image: busybox\n  test:\n    profiles: [\"test\"]\n    build:\n      target: test\n```\n```bash\ndocker compose --profile dev up   # Start with dev profile\n```\n\n## Production Patterns\n- Always use `healthcheck` + `depends_on.condition: service_healthy`\n- Set `restart: unless-stopped` for production services\n- Use named volumes for persistent data, never bind mounts in prod\n- Pin image versions (e.g., `postgres:16.2-alpine`, not `postgres:latest`)\n- Use `deploy.resources` to set memory\u002FCPU limits\n- Use `docker compose watch` for development hot-reload\n\n## Common Pitfalls\n- Port conflicts: check `docker compose ps` and `lsof -i :PORT`\n- Volume permissions: use `user: \"${UID}:${GID}\"` or init scripts\n- Network issues: services communicate via service name, not localhost\n- Build cache: use `docker compose build --no-cache` to force rebuild\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fskillshub-team\u002Fgap-fillers\u002Fdocker-compose-orchestration",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill docker-compose-orchestration",{"tool":42,"command":43},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill docker-compose-orchestration",{"tool":45,"command":46},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill docker-compose-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fskillshub-team\u002Fgap-fillers\u002Fdocker-compose-orchestration\u002FSKILL.md",true,[],[51,60,69,78,84,90],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":23},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":23},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[66,67,68],"MCP","zoom","zoom mcp",{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":23},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[75,76,77,67],"sdk","zoom apps sdk","apps",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":23},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":23},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":23},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[92]]