Add the following to your `.bashrc` suits, to your needs
I recommand to use the `dcviz` command to call `docker-compose-viz-mermaid`, it parses a complex `docker-compose` configuration with `docker-compose config` before calling the visualization tool :
To add the `dcviz` command, add the following code to your `.bashrc`, note that you can change the default arguments to suit your needs
```bash
```bash
dcviz(){
dcviz(){
...
@@ -23,3 +28,5 @@ dcviz() {
...
@@ -23,3 +28,5 @@ dcviz() {
rm$$.yml > /dev/null 2>&1
rm$$.yml > /dev/null 2>&1
}
}
```
```
Then you can simply run `dcviz -M -omyimage.png` to generate the image or `dcviz -v -fMARKDOWN` to get the markdown sources