A CLI utility to update .env references to other containers when moving containers inside/outside docker.
dcmv is short for docker-compose move.
dcmv is useful in case you need to run certain containers outside docker for faster debugging or for tooling reasons.
Run it in the directory which has your docker-compose file.
When running service named service1 outside Docker, run:
dcmv --out --s service1When running a service named service2 inside Docker, which was initially being run from
outside, run:
dcmv --in --s service2deno install --global -A -f jsr:@dcode/dcmv
npx jsr i @dcode/dcmv
| Platform | Download Link |
|---|---|
| Windows | Download Windows |
| macOS arm64 | Download macOS |
| Linux x86_64 | Download Linux x86_64 |
| Linux arm64 | Download Linux arm64 |
After installation change binary name to dcmv and add it to $PATH
- Automatically updates environment variables in
.envfiles based on the service's new location (inside or outside Docker). - Provides a preview of the changes to be made before applying them.
- Supports multiple services and their dependencies.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository, make your changes, and submit a pull request. Likewise, if you find any issues with the tool, feel free to raise an issue.
This project is licensed under the MIT License.