Stack Overflow To create a named data volume using the version of compose files you will have a separated area: version: services: db: image: postgres. Docker Compose with named Volumes and multiple Networks. Is it possible to specify the volume s name in docker-compose. Expectation I would expect docker-compose-defined volumes to behave the same way as docker run-defined volumes. Define named volume with host mount in the docker compose file.
I know docker will pick up the name as foldername volumekey But is there any way to specify the name all by myself? With the docker-compose version and above out and about, one of the things that have been dropped is the volumesfrom which was kind.
I just learned how to use docker with docker-compose to simplified my.