docker-compose.yml as one deployment: several services that
start, stop and deploy together.
Deploy one
Create a deployment with the Docker Compose strategy, from a GitHub repo that has a compose file. Detection picks it automatically if the repo hasdocker-compose.yml, docker-compose.yaml, compose.yml or
compose.yaml. Set Compose file path if yours is elsewhere, and Root
path if it’s in a subdirectory.
Mangrove clones the repository and runs:
How it differs from other deployments
Compose stacks are deliberately handed to Docker Compose as they are, so several Mangrove features don’t apply:Exposing a service
Services in a stack aren’t routed through Caddy. To reach one from outside, publish a port in the compose file:8080 on the box directly. Pick ports outside Mangrove’s
own range (20000 to 21000 by default) so they don’t collide.
Data
Declare volumes in the compose file as usual. They survive redeploys. Deleting the deployment removes the stack’s containers but leaves its compose volumes and network on the box. Remove them yourself withdocker volume ls / docker volume rm once you’re sure.