I realize other people have had similar questions but this uses v2 compose file format and I didn\'t find anything for that.
I want to make a very simple test a
The simplest solution is to use docker-compose stop instead of docker-compose down. And then docker-compose start to restart.
docker-compose stop
docker-compose down
docker-compose start
According to the docs, down "stops containers and removes containers, networks, volumes, and images created by up."
down