how to define a general mount point in docker compose
问题 I would like to define a general mount volume - along with all the options I would like to have it associated - that can be reused across multiple services. In fact, I'm developing a project which uses the same source for several microservices. That way, the volume will be simpler to manage and modify. To start off, I used the old way which took advantage of volumes_from : shared: image: phusion/baseimage volumes: - ./code:/var/www/html nginx: build: docker/nginx ports: - "8080:80" links: -