docker-compose yml Syntax for Named Volumes

0 votes

What is the syntax for specifying the host path of a named volume in docker-compose.yml?

My docker-compose.yml file

volumes:
  myvolume:  # how do I specify path here?
  othervolume:

services: # etc...

I read docs but couldn't find it. Anyone knows this stuff?

Apr 29, 2022 in Docker by Abhijeet
• 180 points

edited 5 days ago 11 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP