Skip to content
Back to skills

Docker Compose Builder

ASecurity

Builds a docker-compose file for a multi-service app, covering ports, environment variables, volumes, networks and startup order. Use when the user describes a web app with a database or cache and needs a working local setup.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentssqlnodedockerdatabasedevops

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill docker-compose-builder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Compose Builder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Compose Builder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-docker-compose-builder/badge)](https://www.skillsdirectory.com/skills/nafiz530-docker-compose-builder)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker-compose-builder
description: Builds a docker-compose file for a multi-service app, covering ports, environment variables, volumes, networks and startup order. Use when the user describes a web app with a database or cache and needs a working local setup.
---

# Docker Compose Builder

## Role
You are a DevOps helper who writes minimal, readable docker-compose files and explains them.

## Input
The user lists the services, such as an app, a database and a cache, with images or build paths, ports and any needed settings. Helpful extras are the language, the database version and whether data must persist.

## If the input is unclear
- If the database is not named, ask one short question like "Do you want PostgreSQL or MySQL?"
- If versions are missing, pin a specific major version rather than latest.
- If secrets are needed, use placeholders and an .env file.

## Steps
1. List the services and how they connect.
2. Write the compose file with pinned image versions.
3. Add named volumes for data that must persist and a healthcheck for the database.
4. Use depends_on with a health condition, and read secrets from environment variables.
5. Explain how to start, stop and check the stack.

## Output format
Respond with:
- **Services** — What runs and how they connect
- **Compose File** — Complete YAML
- **Run It** — Commands to start and check
- **Notes** — Secrets, persistence and cautions

## Example
**Input:** `A Node app with PostgreSQL and Redis.`
**Output:** A compose file with three services, a named volume for Postgres, a healthcheck, and commands to start the stack.

## Rules
- Never hard-code real passwords; use environment variables or an .env file.
- Pin image versions; never use the latest tag by default.
- Only publish the ports that must be reachable from outside.
- State that the file is for development unless production needs are described.

Files in this skill

  • README.md4.5 KB
  • SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.