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!
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.
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.
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?
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!
simple quick and effective ty
Thank you very much for this very helpful video.
U have awesome teaching skills
I appreciate that!
Awesome video. Thanks for sharing this series.
Great tutorial
Thank you! Cheers!
great tutorials!!
Glad you like them!
So thanks you
Thank you too!
How can I find the other videos in this series?
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.
Thanks for the tip!
In addition to Echoes1265 comment, just go to task manager and end all postgresql tasks on your pc.
What is the best way to configure environment variables for this case? Thanks for the video, this was exactly what I was looking for
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.
@@veryacademy Thanks !!
What happened to the bottom of yours screen? I cant see you type the commands
Sorry!
I would have said the command no?
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?
Please make a video on how to learn new topic. Like read docs, build project after reading docs.
I have incorrect username or password in the login page. Someone know this bug ?
👍