How to create a volume in Docker-Compose for a PostgreSQL database

  Рет қаралды 16,309

Very Academy

Very Academy

3 жыл бұрын

In this Docker tutorial, following on from the previous tutorials we now implement a volume to save data from a PostgreSQL data onto a volume so that the data persists after the container is restarted or removed.
Code Repository
github.com/veryacademy/YT-Dja...
👍SUBSCRIBE to get more free tutorials, courses and code snippets!
/ @veryacademy
👍👍Follow us on Facebook
/ veryacademycom-1132321...
👍👍👍Follow use on Twitter:
/ veryacademy
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. This video is intended to be a independent and non affiliated tutorial helping you to better understand the Docker software. We are not accredited, certified, affiliated or endorsing Docker, Inc.

Пікірлер: 38
@middleverse3838
@middleverse3838 3 жыл бұрын
You have this insane quality of making everything simple and speaking with clarity. Really appreciate it bro!
@veryacademy
@veryacademy 3 жыл бұрын
Hmm its not simple your just good at understanding things maybe? Saying it is simple is really dangerous - there might be CEO's looking at this thinking they pay their staff too much 😂
@ikennaumeh5040
@ikennaumeh5040 3 жыл бұрын
Hello Veryacademy, I have watched almost all your videos on Django and related. Thank you very much. Thank you from the bottom of my heart for making these amazing resources free. May God bless and favour you.
@veryacademy
@veryacademy 3 жыл бұрын
Hi Ikenna, thank you so much for your viewership, you really don't need to thank me, I just hope you can use this knowledge to further develop or achieve your goals. 👍
@ikennaumeh5040
@ikennaumeh5040 3 жыл бұрын
@@veryacademyI am, thank you, your content has helped me a lot.
@createlifejr
@createlifejr 3 жыл бұрын
You're one of the best tutors in whole of youtube. No doubt! cheers!
@veryacademy
@veryacademy 3 жыл бұрын
You're one of the best students 👍 Thank you
@arek7198
@arek7198 Жыл бұрын
thanks for this very usefull training
@sonnix31
@sonnix31 Жыл бұрын
Thank you VERY much
@vivektiwari5474
@vivektiwari5474 3 жыл бұрын
awesome teaching style sir, please make playlist on django with AWS full feature like s3,ec2,elastic search , lambda how to live django site,Thanks sir
@veryacademy
@veryacademy 3 жыл бұрын
That is a great suggestion - thank you - keep them coming - its always good to hear what you need. I do read each comment even though sometimes I might not reply straight away. I had a lot of work to do that is for sure!
@KevinTempelx
@KevinTempelx 3 жыл бұрын
Thanks you!
@veryacademy
@veryacademy 3 жыл бұрын
You're welcome!
@vladimircaralde9818
@vladimircaralde9818 2 жыл бұрын
`very` helpful!!!
@kingofrock37
@kingofrock37 3 жыл бұрын
thank you
@veryacademy
@veryacademy 3 жыл бұрын
You're welcome
@charlespeurois
@charlespeurois 3 жыл бұрын
Hi Very Academy, Amazing tutorials! Thanks a lot, it helps loads. I wanted to ask, is it possible to access the backup.tar file in a "normal" / outside docker file system? I cannot find this information anywhere. Thanks again!
@veryacademy
@veryacademy 3 жыл бұрын
Hi Charles, thank you, regarding your question, not sure quite what you are you asking? Does this help flaviocopes.com/docker-access-files-outside-container/
@charlespeurois
@charlespeurois 3 жыл бұрын
Hi! Many thanks for the reply and the article :). I meant you know how on Windows docker's volume for the Postgres DB cannot be seen on the Windows file system (I guess because it is stored in a Linux VM from within the docker container?). How can you export this DB (like the backup.tar file in your video) so that it is visible in Windows and so that you can process the data in other softwares to do analysis on the DB data?
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome :-)
@veryacademy
@veryacademy 3 жыл бұрын
Thanks 😀
@orkhanrustamli2039
@orkhanrustamli2039 3 жыл бұрын
Hi, What is the reason of using "docker-compose run" then deleting and getting containers with "docker-compose up"? Couldn`t you do it directly with UP from beginning?
@veryacademy
@veryacademy 3 жыл бұрын
Sometimes I do things just to show something - even when it might not be the most efficient way of working 👍
@mediatwinkleTV
@mediatwinkleTV 3 жыл бұрын
can someone send me a link of the previous tutorial ! Thank you
@veryacademy
@veryacademy 3 жыл бұрын
Sorry! I was having a sort out and removed some of the tutorials. I did ask the community about deleting them - but they suggested not to. This is a newer playlist kzfaq.info/sun/PLOLrQ9Pn6cazCfL7v4CdaykNoWMQymM_C This is the list of old and new docker tutorials kzfaq.infosearch?query=docker
@lamsungfai
@lamsungfai 3 жыл бұрын
Hi teacher when i use the command "docker-compose run django python manage.py migrate", docker will generate a new container. Thats why i need to delete it handy. How can i prevent this? your nice student
@veryacademy
@veryacademy 3 жыл бұрын
Hey Hammer, sorry for the late reply - been a long hard week. I am not quite sure why you are running this command from docker-compose - docker-compose run django python manage.py migrate? Should you not run the migrate from the cli in your container?
@visoflo4208
@visoflo4208 3 жыл бұрын
How was redis included in this? O looked through the source on git and found no reference to it....I'm a newbie btw lol
@lottostrategies8537
@lottostrategies8537 2 жыл бұрын
must be from the project folder's name 'docker-redis'
@mediatwinkleTV
@mediatwinkleTV 3 жыл бұрын
if I configured this with an AWS RDS db the data should persist right ?
@veryacademy
@veryacademy 3 жыл бұрын
Yes, RDS db persists, but make sure you test backing up and restoring your db
@mediatwinkleTV
@mediatwinkleTV 3 жыл бұрын
@@veryacademy thank you so much for the response, you're a real gem !
@elgary9074
@elgary9074 2 жыл бұрын
Where can I actually find the chronological order of this tutorial ???
@veryacademy
@veryacademy 2 жыл бұрын
kzfaq.info/sun/PLOLrQ9Pn6cazCfL7v4CdaykNoWMQymM_C
@elgary9074
@elgary9074 2 жыл бұрын
@@veryacademy Thanks a lot! fantastic material. 😍
@soufianechalouh7454
@soufianechalouh7454 3 жыл бұрын
Thanks for the video. Altough, am I the only one for whom it didn't work? my db gets deleted every time
@veryacademy
@veryacademy 3 жыл бұрын
Every time when?
@soufianechalouh7454
@soufianechalouh7454 3 жыл бұрын
@@veryacademy thanks a lot for replying. It was getting deleted after every down - up. Turned out I had a typo : "postgres" instead of "postgresql" thank you so much. I will leave the comment for other typo makers like me.
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 7 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 60 МЛН
Docker - Django, Celery & Redis Docker Compose setup
20:29
Very Academy
Рет қаралды 43 М.
Docker Volumes Explained (PostgreSQL example)
13:38
Hussein Nasser
Рет қаралды 33 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 306 М.
Wait... PostgreSQL can do WHAT?
20:33
The Art Of The Terminal
Рет қаралды 191 М.
Урок 1. Установка  PostgreSQL с помощью Docker compose.
12:23
Мобильный разработчик | Юрий Петров
Рет қаралды 51 М.
What is Docker Volume | How to create  Volumes | What is Bind Mount | Docker Storage
16:51
Уроки Docker для начинающих / #7 - Docker Volumes
27:42
Гоша Дударь
Рет қаралды 63 М.
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 7 МЛН