What's Changed
This adds a new auto_discover boolean option to the deploy config. If set to true, doco-cd will try to autodiscover projects/stacks to deploy by searching for docker-compose.y(a)ml or compose.y(a)ml files in subdirectories in the working directory (working_dir). Doco-cd will internally generate new deploy configs based on the directory name and inherits all other settings from the base deploy config inside the .doco-cd.yml file (or inline deployment config).
When a app is no longer available in the working_dir (e.g. deleted or moved to another directory outside the working dir), doco-cd will automatically remove the deployed project/stack from the docker host.
For example with a structure like this
.doco-cd.yml
apps/
wordpress/
docker-compose.yml
.env
nginx/
docker-compose.yaml
configs/
nginx.conf
misc/
image.png
and a .doco-cd.yml with the following content:
working_dir: apps/
auto_discover: truedoco-cd would deploy 2 stacks to the docker host:
- wordpress
- nginx
✨ Features
📦 Dependencies
- chore(deps): update golang:1.25.4 docker digest to e68f6a0 by @renovate[bot] in #763
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #764
📚 Miscellaneous
Full Changelog: v0.49.0...v0.50.0-rc.1