Docker Compose file · Volumes and networks
Mount a host folder
Mount source code into a container for development. :ro makes it read-only.
volumes:
- ./src:/app/src
- ./config.yml:/app/config.yml:ro
Official Docker Compose file documentation
More volumes and networks commands
All volumes and networks commands · Docker Compose file cheatsheet