docker-syntax-compose-services
Installation
SKILL.md
docker-syntax-compose-services
Quick Reference
Service Definition Structure
services:
service-name:
image: registry/image:tag # Container image
build: ./path # Build from Dockerfile
command: ["executable", "arg"] # Override CMD
entrypoint: ["executable"] # Override ENTRYPOINT
ports: # Port mappings
- "8080:80"
environment: # Environment variables
KEY: value
volumes: # Data mounts
- data:/app/data
Related skills