Undefined volume with Docker Compose
I wanted to translate this docker CLI command (from smallstep/step-ca ) into a docker-compose.yml file to run with docker compose (version 2): docker run -d -v step:/home/step \ -p 9000:9000 \ -e "DOCKER_STEPCA_INIT_NAME=Smallstep" \ -e "DOCKER_STEPCA_INIT_DNS_NAMES=localhost,$(hostname -f)" \ smallstep/step-ca This command successfully starts the container.