Not
  • Merhaba Dünya
  • Python
    • Sanal Ortam
    • Json
    • Cheat Sheet
    • Search
  • Javascript
    • Node
    • Vue
  • PostgreSQL
    • Install
    • Start Stop
    • Create Db
    • Backup Restore
    • Insert, Update, Delete
    • Kısa Yollar
  • Docker
    • Cheat Sheet
    • Problem
    • Komutlar
    • Örnek Konfigürasyon
    • Volume
  • Php, MySQL
  • Amazon AWS
  • Git
  • Celery
  • Mongo
    • Delete
    • Update
    • Amazon DocumentDB
  • Linux
  • Avesome
  • Bazı Bilgiler
  • Django
    • Models
    • Cheat Sheet
    • Snippets
  • Redis
  • Visual Studio Code
Powered by GitBook
On this page
  • Docker external named volumes
  • Docker Volume un Local makineye mount edilmesi
  1. Docker

Volume

PreviousÖrnek KonfigürasyonNextPhp, MySQL

Last updated 4 years ago

Docker external named volumes

En Basit yolu

docker volume create django_logging

Biraz gelişmişi (bunda bazı sorunlar yaşadım) yukardaki basit yol işi çok iyi gürüyor.

docker volume create --driver local \
    --opt type=none \
    --opt device=/var/opt/django_logging/dist \
    --opt o=bind django_logging
version '3'

volumes:
  web_data:
    external: true

services:
  app:
    image: nginx:alpine
    ports:
      - 80:80
    volumes:
      - web_data:/usr/share/nginx/html:ro

Docker Volume un Local makineye mount edilmesi

https://docs.docker.com/storage/volumes/
https://devopsheaven.com/docker/docker-compose/volumes/2018/01/16/volumes-in-docker-compose.html
https://dev.to/adamkdean/mount-docker-volume-locally-59mg