[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73C2P2FZAW9H0RXD2HBB2AW":3,"skill-same:01M73C2P2FZAW9H0RXD2HBB2AW":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M73C2P2FZAW9H0RXD2HBB2AW","setup-docker-compose",null,"Configure Docker Compose for multi-container R development environments. Covers service definitions, volume mounts, networking, environment variables, and dev vs production configurations. Use to run R alongside other services (databases, APIs), set up a reproducible R dev environment, orchestrate an R-based MCP server container, or manage environment variables and volume mounts for R projects.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fsetup-docker-compose\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: setup-docker-compose\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-05-03\"\ndescription: >\n  Configure Docker Compose for multi-container R development environments.\n  Covers service definitions, volume mounts, networking, environment\n  variables, and dev vs production configurations. Use to run R alongside\n  other services (databases, APIs), set up a reproducible R dev environment,\n  orchestrate an R-based MCP server container, or manage environment\n  variables and volume mounts for R projects.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: containerization\n  complexity: intermediate\n  language: Docker\n  tags: docker-compose, orchestration, development, volumes\n---\n\n# Set Up Docker Compose\n\nConfigure Docker Compose for R development and deployment environments.\n\n## When to Use\n\n- Running R alongside other services (databases, APIs)\n- Setting up a reproducible development environment\n- Orchestrating an R-based MCP server container\n- Managing environment variables and volume mounts\n\n## Inputs\n\n- **Required**: Dockerfile for the R service\n- **Required**: Project directory to mount\n- **Optional**: Additional services (database, cache, web server)\n- **Optional**: Environment variable configuration\n\n## Procedure\n\n### Step 1: Create docker-compose.yml\n\n```yaml\nversion: '3.8'\n\nservices:\n  r-dev:\n    build:\n      context: .\n      dockerfile: Dockerfile\n    container_name: r-dev\n    image: r-dev:latest\n\n    volumes:\n      - .:\u002Fworkspace\n      - renv-cache:\u002Fworkspace\u002Frenv\u002Fcache\n\n    stdin_open: true\n    tty: true\n\n    environment:\n      - TERM=xterm-256color\n      - R_LIBS_USER=\u002Fworkspace\u002Frenv\u002Flibrary\n      - RENV_PATHS_CACHE=\u002Fworkspace\u002Frenv\u002Fcache\n\n    command: R\n\n    restart: unless-stopped\n\nvolumes:\n  renv-cache:\n    driver: local\n```\n\n**Got:** A `docker-compose.yml` file with the R service defined, including volume mounts for the project directory and renv cache, and environment variables for R library paths.\n\n**If fail:** With invalid YAML, validate using `docker compose config`. Ensure indentation uses spaces (not tabs) and all string values with special characters are quoted.\n\n### Step 2: Add Additional Services (If Needed)\n\n```yaml\nservices:\n  r-dev:\n    # ... as above\n    depends_on:\n      - postgres\n    environment:\n      - DB_HOST=postgres\n      - DB_PORT=5432\n\n  postgres:\n    image: postgres:16\n    container_name: r-postgres\n    environment:\n      POSTGRES_DB: analysis\n      POSTGRES_USER: ruser\n      POSTGRES_PASSWORD_FILE: \u002Frun\u002Fsecrets\u002Fdb_password\n    volumes:\n      - pgdata:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n    ports:\n      - \"5432:5432\"\n\nvolumes:\n  renv-cache:\n  pgdata:\n```\n\n**Got:** The additional service (e.g., PostgreSQL) is defined with its own volume, environment variables, and port mapping. The R service has `depends_on` referencing the new service.\n\n**If fail:** If the database service fails to start, check `docker compose logs postgres` for initialization errors. Verify that environment variables like `POSTGRES_PASSWORD_FILE` point to valid secrets or switch to `POSTGRES_PASSWORD` for development.\n\n### Step 3: Configure Networking\n\nFor services that need localhost access (e.g., MCP servers):\n\n```yaml\nservices:\n  r-dev:\n    network_mode: \"host\"\n```\n\nFor isolated networking:\n\n```yaml\nservices:\n  r-dev:\n    networks:\n      - app-network\n    ports:\n      - \"3000:3000\"\n\nnetworks:\n  app-network:\n    driver: bridge\n```\n\n**Got:** Networking configured appropriately: `host` mode for services needing localhost access (MCP servers), or bridge networking with explicit port mappings for isolated services.\n\n**If fail:** If services cannot communicate, verify they are on the same network. With bridge networking, use service names as hostnames (e.g., `postgres` not `localhost`). With host mode, use `localhost` and ensure ports do not conflict.\n\n### Step 4: Manage Environment Variables\n\nCreate `.env` file (git-ignored):\n\n```\nR_VERSION=4.5.0\nGITHUB_PAT=your_token_here\n```\n\nReference in compose:\n\n```yaml\nservices:\n  r-dev:\n    build:\n      args:\n        R_VERSION: ${R_VERSION}\n    env_file:\n      - .env\n```\n\n**Got:** A `.env` file (git-ignored) with project-specific variables, and `docker-compose.yml` references it via `env_file` or variable interpolation (`${VAR}`).\n\n**If fail:** If variables are not resolving, ensure the `.env` file is in the same directory as `docker-compose.yml`. Run `docker compose config` to see the resolved configuration with all variables expanded.\n\n### Step 5: Build and Run\n\n```bash\n# Build images\ndocker compose build\n\n# Start services\ndocker compose up -d\n\n# Attach to R session\ndocker compose exec r-dev R\n\n# View logs\ndocker compose logs -f r-dev\n\n# Stop services\ndocker compose down\n```\n\n**Got:** All services start. R session accessible.\n\n**If fail:** Check `docker compose logs` for startup errors. Common: port conflicts, missing environment variables.\n\n### Step 6: Create Override for Development\n\nCreate `docker-compose.override.yml` for local development settings:\n\n```yaml\nservices:\n  r-dev:\n    volumes:\n      - \u002Fpath\u002Fto\u002Flocal\u002Fpackages:\u002Fextra-packages\n    environment:\n      - DEBUG=true\n```\n\nThis is automatically merged with `docker-compose.yml`.\n\n**Got:** A `docker-compose.override.yml` file with development-specific settings (extra volumes, debug flags) automatically applied when running `docker compose up`.\n\n**If fail:** If overrides are not taking effect, verify the filename is exactly `docker-compose.override.yml`. Run `docker compose config` to confirm the merge. For explicit override files, use `docker compose -f docker-compose.yml -f custom-override.yml up`.\n\n## Validation\n\n- [ ] `docker compose build` completes without errors\n- [ ] `docker compose up` starts all services\n- [ ] Volume mounts correctly share files between host and container\n- [ ] Environment variables are available inside containers\n- [ ] Services can communicate with each other\n- [ ] `docker compose down` cleanly stops everything\n\n## Pitfalls\n\n- **Volume mount permissions**: Linux containers may create files as root. Use `user:` directive or fix permissions.\n- **Port conflicts**: Check for services already using the same ports on the host\n- **Docker Desktop vs CLI**: `docker compose` (v2) vs `docker-compose` (v1). Use v2.\n- **WSL path mounts**: Use `\u002Fmnt\u002Fc\u002F...` paths when mounting Windows directories from WSL\n- **Named volumes vs bind mounts**: Named volumes persist across rebuilds; bind mounts reflect host changes immediately\n\n## Related Skills\n\n- `create-r-dockerfile` - create the Dockerfile that compose references\n- `containerize-mcp-server` - compose configuration for MCP servers\n- `optimize-docker-build-cache` - speed up compose builds\n","# Set Up Docker Compose\n\nConfigure Docker Compose for R development and deployment environments.\n\n## When to Use\n\n- Running R alongside other services (databases, APIs)\n- Setting up a reproducible development environment\n- Orchestrating an R-based MCP server container\n- Managing environment variables and volume mounts\n\n## Inputs\n\n- **Required**: Dockerfile for the R service\n- **Required**: Project directory to mount\n- **Optional**: Additional services (database, cache, web server)\n- **Optional**: Environment variable configuration\n\n## Procedure\n\n### Step 1: Create docker-compose.yml\n\n```yaml\nversion: '3.8'\n\nservices:\n  r-dev:\n    build:\n      context: .\n      dockerfile: Dockerfile\n    container_name: r-dev\n    image: r-dev:latest\n\n    volumes:\n      - .:\u002Fworkspace\n      - renv-cache:\u002Fworkspace\u002Frenv\u002Fcache\n\n    stdin_open: true\n    tty: true\n\n    environment:\n      - TERM=xterm-256color\n      - R_LIBS_USER=\u002Fworkspace\u002Frenv\u002Flibrary\n      - RENV_PATHS_CACHE=\u002Fworkspace\u002Frenv\u002Fcache\n\n    command: R\n\n    restart: unless-stopped\n\nvolumes:\n  renv-cache:\n    driver: local\n```\n\n**Got:** A `docker-compose.yml` file with the R service defined, including volume mounts for the project directory and renv cache, and environment variables for R library paths.\n\n**If fail:** With invalid YAML, validate using `docker compose config`. Ensure indentation uses spaces (not tabs) and all string values with special characters are quoted.\n\n### Step 2: Add Additional Services (If Needed)\n\n```yaml\nservices:\n  r-dev:\n    # ... as above\n    depends_on:\n      - postgres\n    environment:\n      - DB_HOST=postgres\n      - DB_PORT=5432\n\n  postgres:\n    image: postgres:16\n    container_name: r-postgres\n    environment:\n      POSTGRES_DB: analysis\n      POSTGRES_USER: ruser\n      POSTGRES_PASSWORD_FILE: \u002Frun\u002Fsecrets\u002Fdb_password\n    volumes:\n      - pgdata:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n    ports:\n      - \"5432:5432\"\n\nvolumes:\n  renv-cache:\n  pgdata:\n```\n\n**Got:** The additional service (e.g., PostgreSQL) is defined with its own volume, environment variables, and port mapping. The R service has `depends_on` referencing the new service.\n\n**If fail:** If the database service fails to start, check `docker compose logs postgres` for initialization errors. Verify that environment variables like `POSTGRES_PASSWORD_FILE` point to valid secrets or switch to `POSTGRES_PASSWORD` for development.\n\n### Step 3: Configure Networking\n\nFor services that need localhost access (e.g., MCP servers):\n\n```yaml\nservices:\n  r-dev:\n    network_mode: \"host\"\n```\n\nFor isolated networking:\n\n```yaml\nservices:\n  r-dev:\n    networks:\n      - app-network\n    ports:\n      - \"3000:3000\"\n\nnetworks:\n  app-network:\n    driver: bridge\n```\n\n**Got:** Networking configured appropriately: `host` mode for services needing localhost access (MCP servers), or bridge networking with explicit port mappings for isolated services.\n\n**If fail:** If services cannot communicate, verify they are on the same network. With bridge networking, use service names as hostnames (e.g., `postgres` not `localhost`). With host mode, use `localhost` and ensure ports do not conflict.\n\n### Step 4: Manage Environment Variables\n\nCreate `.env` file (git-ignored):\n\n```\nR_VERSION=4.5.0\nGITHUB_PAT=your_token_here\n```\n\nReference in compose:\n\n```yaml\nservices:\n  r-dev:\n    build:\n      args:\n        R_VERSION: ${R_VERSION}\n    env_file:\n      - .env\n```\n\n**Got:** A `.env` file (git-ignored) with project-specific variables, and `docker-compose.yml` references it via `env_file` or variable interpolation (`${VAR}`).\n\n**If fail:** If variables are not resolving, ensure the `.env` file is in the same directory as `docker-compose.yml`. Run `docker compose config` to see the resolved configuration with all variables expanded.\n\n### Step 5: Build and Run\n\n```bash\n# Build images\ndocker compose build\n\n# Start services\ndocker compose up -d\n\n# Attach to R session\ndocker compose exec r-dev R\n\n# View logs\ndocker compose logs -f r-dev\n\n# Stop services\ndocker compose down\n```\n\n**Got:** All services start. R session accessible.\n\n**If fail:** Check `docker compose logs` for startup errors. Common: port conflicts, missing environment variables.\n\n### Step 6: Create Override for Development\n\nCreate `docker-compose.override.yml` for local development settings:\n\n```yaml\nservices:\n  r-dev:\n    volumes:\n      - \u002Fpath\u002Fto\u002Flocal\u002Fpackages:\u002Fextra-packages\n    environment:\n      - DEBUG=true\n```\n\nThis is automatically merged with `docker-compose.yml`.\n\n**Got:** A `docker-compose.override.yml` file with development-specific settings (extra volumes, debug flags) automatically applied when running `docker compose up`.\n\n**If fail:** If overrides are not taking effect, verify the filename is exactly `docker-compose.override.yml`. Run `docker compose config` to confirm the merge. For explicit override files, use `docker compose -f docker-compose.yml -f custom-override.yml up`.\n\n## Validation\n\n- [ ] `docker compose build` completes without errors\n- [ ] `docker compose up` starts all services\n- [ ] Volume mounts correctly share files between host and container\n- [ ] Environment variables are available inside containers\n- [ ] Services can communicate with each other\n- [ ] `docker compose down` cleanly stops everything\n\n## Pitfalls\n\n- **Volume mount permissions**: Linux containers may create files as root. Use `user:` directive or fix permissions.\n- **Port conflicts**: Check for services already using the same ports on the host\n- **Docker Desktop vs CLI**: `docker compose` (v2) vs `docker-compose` (v1). Use v2.\n- **WSL path mounts**: Use `\u002Fmnt\u002Fc\u002F...` paths when mounting Windows directories from WSL\n- **Named volumes vs bind mounts**: Named volumes persist across rebuilds; bind mounts reflect host changes immediately\n\n## Related Skills\n\n- `create-r-dockerfile` - create the Dockerfile that compose references\n- `containerize-mcp-server` - compose configuration for MCP servers\n- `optimize-docker-build-cache` - speed up compose builds\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"docker-compose, orchestration, development, volumes","Philipp Thoss","containerization","1.0","Docker","intermediate","Julius Brussee homage — caveman","Configure Docker Compose for multi-container R development environments. Covers service definitions, volume mounts, networking, environment variables, and dev vs production configurations. Use to run R alongside other services (databases, APIs), set up a reproducible R dev environment, orchestrate an R-based MCP server container, or manage environment variables and volume mounts for R projects.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-05-03","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fsetup-docker-compose",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill setup-docker-compose",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill setup-docker-compose",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill setup-docker-compose","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fsetup-docker-compose\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]