Tooluck logoTooluck
SKILL.md

docker-compose

Agent skill fromBagelHole/DevOps-Security-Agent-Skills

Define and run multi-container Docker applications using Docker Compose. Create compose files, manage service dependencies, configure networks and volumes, and orchestrate local development environments. Use when setting up multi-service applications or development environments.

How to install docker-compose

install docker-compose
# install the DevOps-Security-Agent-Skills pack with the skills CLI
npx skills add BagelHole/DevOps-Security-Agent-Skills

# or add only this skill to Claude Code: copy the folder

devops/containers/docker-compose/

# into

~/.claude/skills/docker-compose/ (all projects)

.claude/skills/docker-compose/ (one project)

devops/containers/docker-compose/SKILL.md

MITFull file
1# Docker Compose
2
3Orchestrate multi-container applications with declarative YAML configuration.
4
5## When to Use This Skill
6
7Use this skill when:
8- Running multi-container applications locally
9- Setting up development environments
10- Defining service dependencies and networking
11- Managing application stacks with multiple services
12- Creating reproducible development setups
13
14## Prerequisites
15
16- Docker Engine with Compose plugin (v2)
17- Basic Docker knowledge
18- YAML syntax understanding
19
20## Basic Configuration
21
22### Simple Application Stack
23
24```yaml
25# docker-compose.yml
26version: '3.8'
27
28services:
29 web:
30 build: .
31 ports:
32 - "3000:3000"
33 environment:
34 - NODE_ENV=development
35 - DATABASE_URL=postgres://postgres:secret@db:5432/myapp
36 depends_on:
37 - db
38 - redis
39
40 db:
41 image: postgres:15-alpine
42 environment:
43 POSTGRES_USER: postgres
44 POSTGRES_PASSWORD: secret
45 POSTGRES_DB: myapp
46 volumes:
47 - postgres-data:/var/lib/postgresql/data
48 ports:
49 - "5432:5432"
50
51 redis:
52 image: redis:7-alpine
53 ports:
54 - "6379:6379"
55
56volumes:
57 postgres-data:
58```
59
60## Service Configuration
61
62### Build Options
63
64```yaml
65services:
66 app:
67 build:
68 context: ./app
69 dockerfile: Dockerfile.dev
70 args:
71 NODE_VERSION: "20"
72 target: development
73 cache_from:
74 - myapp:cache
75 image: myapp:dev
76```
77
78### Environment Variables
79
80```yaml
81services:
82 app:
83 environment:
84 - NODE_ENV=production
85…

Excerpt shown under the repository's MIT license.

More skills in DevOps-Security-Agent-Skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

cathrynlavery /

diagram-design
66k

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

CCCXCUGH1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates