Docker-Compose | Dockerizing pgAdmin and Postgres - Volumes and Custom Network IP

  Рет қаралды 20,551

Very Academy

Very Academy

Күн бұрын

Welcome to another Docker-Compose tutorial. The Windows platform does support PostgreSQL, but it can be much more convenient to install Postgres and manage PostgreSQL with pgAdmin in containers. In this tutorial we create a docker-compose file to configure Postgres and pgAdmin allowing any other application, in this tutorial Django to connect to it. We go the extra step of configuring the network, assigning static IP addressed to the containers.
Code Repository: (Part 8)
github.com/ver...
🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.
/ @veryacademy
👍SUBSCRIBE to get more free tutorials, courses and code snippets!
/ @veryacademy

Пікірлер: 28
@hughqing2628
@hughqing2628 3 жыл бұрын
Thank you very much! You are one of the best Django teachers on the Internet! All tutorials have fantastic qualities! I just finished this Docker series, and it really helps me to dockerize my project and build understanding towards the workflow of using Docker. Thank you for your generous efforts!
@davidbeauchemin8601
@davidbeauchemin8601 Жыл бұрын
Thank you very much for this very helpful video.
@kushbhargava2692
@kushbhargava2692 3 жыл бұрын
U have awesome teaching skills
@veryacademy
@veryacademy 3 жыл бұрын
I appreciate that!
@youbsalama9309
@youbsalama9309 Жыл бұрын
simple quick and effective ty
@Esteban2812
@Esteban2812 2 жыл бұрын
Awesome video. Thanks for sharing this series.
@wellingtonoronsaye82
@wellingtonoronsaye82 2 жыл бұрын
Great tutorial
@veryacademy
@veryacademy 2 жыл бұрын
Thank you! Cheers!
@media7588
@media7588 Жыл бұрын
So thanks you
@veryacademy
@veryacademy Жыл бұрын
Thank you too!
@hiawathasbrother
@hiawathasbrother Жыл бұрын
How can I find the other videos in this series?
@tigerfanxiao
@tigerfanxiao 3 жыл бұрын
great tutorials!!
@veryacademy
@veryacademy 3 жыл бұрын
Glad you like them!
@pjmclenon
@pjmclenon Жыл бұрын
What happened to the bottom of yours screen? I cant see you type the commands
@veryacademy
@veryacademy Жыл бұрын
Sorry!
@veryacademy
@veryacademy Жыл бұрын
I would have said the command no?
@ramiroramos8949
@ramiroramos8949 3 жыл бұрын
What is the best way to configure environment variables for this case? Thanks for the video, this was exactly what I was looking for
@veryacademy
@veryacademy 3 жыл бұрын
Hi Ramiro - first and foremost. This type of setup is for local development only - it is not recommended you use Docker for Postgres in production. Your question has a few answers, sorry if that was not applicable or if I don't answer your question. This should be of use: From: hub.docker.com/_/postgres Docker Secrets As an alternative to passing sensitive information via environment variables, _FILE may be appended to some of the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in /run/secrets/ files. For example: $ docker run --name some-postgres -e POSTGRES_PASSWORD_FILE=/run/secrets/postgres-passwd -d postgres Currently, this is only supported for POSTGRES_INITDB_ARGS, POSTGRES_PASSWORD, POSTGRES_USER, and POSTGRES_DB.
@ramiroramos8949
@ramiroramos8949 3 жыл бұрын
@@veryacademy Thanks !!
@Echoes2165
@Echoes2165 3 жыл бұрын
Hey, thanks for the awesome tutorial! Maybe someone finds this useful: if you have a running postgres application on your machine, trying to run migrations with django might result in a weird error saying that the "test_db" does not exist even though you might have the docker container running and are accessing the db through pgadmin on port 5050.
@veryacademy
@veryacademy 3 жыл бұрын
Thanks for the tip!
@olorunfemirichard5976
@olorunfemirichard5976 3 жыл бұрын
In addition to Echoes1265 comment, just go to task manager and end all postgresql tasks on your pc.
@menpj7448
@menpj7448 15 күн бұрын
​@@olorunfemirichard5976 thank you i was suffering from this problem for last 5 days. your comment made my day
@menpj7448
@menpj7448 15 күн бұрын
thank you i was suffering from this problem for last 5 days. your comment made my day
@PatrykJagielski
@PatrykJagielski 3 жыл бұрын
i'm getting this error with pgadmin "Failed to create the directory /var/lib/pgadmin/sessions: [Errno 13] Permission denied: '/var/lib/pgadmin/sessions'". Any clue how to slove it?
@jaja7902-r7p
@jaja7902-r7p 2 жыл бұрын
I have incorrect username or password in the login page. Someone know this bug ?
@ibrahimoglu
@ibrahimoglu 2 жыл бұрын
👍
@testpurpose5161
@testpurpose5161 3 жыл бұрын
Please make a video on how to learn new topic. Like read docs, build project after reading docs.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 509 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Deploy Django Docker Image to Heroku
1:09:56
Very Academy
Рет қаралды 17 М.
Top 8 Docker Best Practices for using Docker in Production
18:27
TechWorld with Nana
Рет қаралды 317 М.
Docker | Towards serving React (Nginx) with Django API (gunicorn)
48:35
CompTIA Network+ Certification Video Course
3:46:51
PowerCert Animated Videos
Рет қаралды 9 МЛН
Docker Volumes Explained (PostgreSQL example)
13:38
Hussein Nasser
Рет қаралды 35 М.
Elastic Search Pipelines - calculating past due dates for SaltMiner
36:45
Run Postgres in a Docker Container (Easiest PostgreSQL Setup)
12:23