Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

volumes docker compose

version: "2.4"
services:
  web:
    image: nginx:alpine
    ports:
      - "80:80"
    volumes:
      - type: volume
        source: mydata
        target: /data
        volume:
          nocopy: true
      - type: bind
        source: ./static
        target: /opt/app/static

networks:
  webnet:

volumes:
  mydata:
Source by docs.docker.com #
 
PREVIOUS NEXT
Tagged: #volumes #docker #compose
ADD COMMENT
Topic
Name
5+2 =