Docker Compose describes several containers in one YAML. Perfect for app + database + proxy with a single command.
Steps
Confirm the plugin is available (ships with current Docker Engine):
docker compose versionCreate a project folder and a minimal compose file (sample static web):
mkdir -p ~/app && cd ~/appcat > compose.yaml <<'EOF'services: web: image: nginx:alpine ports: - "8080:80"EOFStart in the background and check status:
docker compose up -ddocker compose psFollow logs and tear the stack down when done:
docker compose logs -f --tail=50docker compose down
Tips
- Keep secrets in a sibling
.env; never commit them. - In production use absolute volume paths and backups.
ext step
Multi-container stack on your server: Deploy your Cloud VPS.