
Docker Compose Basics
- 40 installs
- 186 repo stars
- Updated July 19, 2026
- thebushidocollective/han
Helps with devops & ci/cd tasks during AI-assisted development.
About
docker-compose-basics is a Claude Code skill for devops & ci/cd. It helps solo builders move faster with AI-assisted coding.
- docker-compose-basics
- DevOps & CI/CD
- AI-coding skill
Docker Compose Basics by the numbers
- 40 all-time installs (skills.sh)
- Ranked #811 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thebushidocollective/han --skill docker-compose-basicsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 40 |
|---|---|
| repo stars | ★ 186 |
| Last updated | July 19, 2026 |
| Repository | thebushidocollective/han ↗ |
What it does
Helps with devops & ci/cd tasks during AI-assisted development.
Files
Docker Compose Basics
Docker Compose for defining and running multi-container applications.
Basic Structure
version: '3.8'
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./html:/usr/share/nginx/html
environment:
- NGINX_HOST=localhost
depends_on:
- api
api:
build: ./api
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://db:5432/myapp
depends_on:
- db
db:
image: postgres:15
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: myapp
volumes:
pgdata:Common Commands
# Start services
docker compose up
# Start in background
docker compose up -d
# Stop services
docker compose down
# View logs
docker compose logs -f
# Rebuild
docker compose build
# Execute command
docker compose exec web sh
# Scale service
docker compose up -d --scale api=3Best Practices
Environment Variables
services:
api:
environment:
- NODE_ENV=${NODE_ENV:-development}
- API_KEY=${API_KEY}Health Checks
services:
web:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 3Resource Limits
services:
api:
deploy:
resources:
limits:
cpus: '0.5'
memory: 512MRelated skills
DevOps & CI/CDdeploy