mirror of
https://github.com/basnijholt/compose-farm.git
synced 2026-06-11 12:20:30 +01:00
- Package: sdc → compose_farm - CLI command: sdc → compose-farm - Config file: sdc.yaml → compose-farm.yaml - Config path: ~/.config/sdc/ → ~/.config/compose-farm/ - Updated all documentation, tests, and examples
43 lines
754 B
Markdown
43 lines
754 B
Markdown
# Compose Farm Examples
|
|
|
|
This folder contains example Docker Compose services for testing Compose Farm locally.
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
cd examples
|
|
|
|
# Check status of all services
|
|
compose-farm ps
|
|
|
|
# Pull images
|
|
compose-farm pull --all
|
|
|
|
# Start hello-world (runs and exits)
|
|
compose-farm up hello
|
|
|
|
# Start nginx (stays running)
|
|
compose-farm up nginx
|
|
|
|
# Check nginx is running
|
|
curl localhost:8080
|
|
|
|
# View logs
|
|
compose-farm logs nginx
|
|
|
|
# Stop nginx
|
|
compose-farm down nginx
|
|
|
|
# Update all (pull + restart)
|
|
compose-farm update --all
|
|
```
|
|
|
|
## Services
|
|
|
|
- **hello**: Simple hello-world container (exits immediately)
|
|
- **nginx**: Nginx web server on port 8080
|
|
|
|
## Config
|
|
|
|
The `compose-farm.yaml` in this directory configures both services to run locally (no SSH).
|