Add ddown function

This commit is contained in:
Gabriel Augendre 2022-03-09 09:19:48 +01:00
parent bab777e06f
commit c204cea625

View file

@ -0,0 +1,5 @@
function ddown
set -l workdir (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.working_dir" }}' (docker ps -q | head -n1))
set -l compose_file (docker inspect -f '{{ index .Config.Labels "com.docker.compose.project.config_files" }}' (docker ps -q | head -n1))
docker-compose -f "$workdir/$compose_file" down
end