Minimal Docker Compose multi-service example: public web + private api sidecar.
Public Appaloft supports runtime.strategy: docker-compose (see Community docs / config file reference).
Part of: https://github.com/appaloft/examples
| Service | Role | Network |
|---|---|---|
web |
Public HTTP edge (port 8080) | published |
api |
Private JSON API (port 3000) | compose network only |
web proxies /api/hello → http://api:3000/api/hello.
| Field | Value |
|---|---|
| Base directory | /compose-stack |
| Compose file | docker-compose.yml |
| Public port | 8080 (web) |
| Health | /health on web |
docker compose up --build
curl -sS http://127.0.0.1:8080/health
curl -sS http://127.0.0.1:8080/api/hello
./scripts/smoke-local.shCLI (compose method):
appaloft deploy . --method docker-compose
# or git-public source with baseDirectory=/compose-stack and compose strategyDocumented config in this directory:
runtime:
strategy: docker-compose
dockerComposeFilePath: docker-compose.yml
network:
internalPort: 8080
health:
path: /healthCloud Console: deploy this monorepo path with compose/runtime strategy when the surface is enabled; otherwise use pure-SSH / Community CLI compose deploy against this directory.
MIT