DEV Community

Discussion on: What do you use to replicate your dev environment?

jessydmd profile image

Quick question if you don't mind, do you use a tool in particular when you mount your directories to the container, or do you just use the -v command ?

Thread Thread
foresthoffman profile image
Forest Hoffman

I use docker-compose which allows you to set up docker container configurations in a docker-compose.yml file. Volume mounting is described in the docker-compose file documentation.

It's an alternative to using the base docker command and using -v every time. I don't like having to remember what options I used for a custom docker container, so for me, slapping it into a config file and running docker-compose up or docker-compose down is a huge benefit.