Difference between revisions of "Docker-compose: volumes:"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== Examples ==
 
== Examples ==
 +
 +
https://docs.docker.com/compose/compose-file/compose-file-v3/#volume-configuration-reference
 +
version: "3.9"
 +
 +
services:
 +
  db:
 +
    image: db
 +
    volumes:
 +
      - my-data-volume:/var/lib/db
 +
  backup:
 +
    image: backup-service
 +
    volumes:
 +
      - my-data-volume:/var/lib/backup/data
 +
 +
volumes:
 +
  my-data-volume:
  
 
https://docs.docker.com/compose/compose-file/#volumes#driver_opts
 
https://docs.docker.com/compose/compose-file/#volumes#driver_opts

Revision as of 14:30, 17 April 2021

Advertising: