Docker Compose | How to configure PostgreSQL or MySQL database with Python Django

  Рет қаралды 39,509

Very Academy

Very Academy

Күн бұрын

Пікірлер: 55
@shreyashsrivastava5467
@shreyashsrivastava5467 3 жыл бұрын
Again Love from India ❤️
@veryacademy
@veryacademy 3 жыл бұрын
👍
@acronproject
@acronproject 7 ай бұрын
Thanks so mch Mr. Zanda
@sotak77
@sotak77 7 ай бұрын
Awesome tutorial, thank you for all the good information
@edecilcorrea3450
@edecilcorrea3450 Жыл бұрын
Thank you very much for this tutorial. You are a very good teacher.
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome as always 👍😀
@veryacademy
@veryacademy 3 жыл бұрын
Thank you! Cheers!
@arek7198
@arek7198 Жыл бұрын
Thanks a lot for very good tutorial
@benjaminagyekum7283
@benjaminagyekum7283 3 жыл бұрын
Always releasing new interesting videos
@veryacademy
@veryacademy 3 жыл бұрын
Glad you think so!
@JamelBMensah
@JamelBMensah 22 күн бұрын
Firstly I will say you are a very good Instructor and you've help me a lot but I have this question Please help me I tried changing the password in the docker-compose file but I'm getting errors My question is can I change it or not? And if I can how can I go about doing that?
@akhillshetty2140
@akhillshetty2140 3 жыл бұрын
Zander, can you make a video with Django API + React Frontend Docker Package/Deployment? That would be a great addition to this series!!
@veryacademy
@veryacademy 3 жыл бұрын
Hey - I keep telling people I will and not get around to it!
@greykor140
@greykor140 3 жыл бұрын
@@veryacademy I want this too!
@dennissanchez5171
@dennissanchez5171 2 жыл бұрын
Helpful, thanks!
@xRezNex
@xRezNex 3 жыл бұрын
Excellent. Gained a sub
@veryacademy
@veryacademy 3 жыл бұрын
Welcome aboard! Thank you!
@txcing9296
@txcing9296 2 жыл бұрын
amazing thank you
@giannifed
@giannifed 3 жыл бұрын
thank you very much
@veryacademy
@veryacademy 3 жыл бұрын
Thank you 🙏
@SoloPython
@SoloPython 3 жыл бұрын
Please teach us how to do *Docker + Django + React/Vue* much love!!
@veryacademy
@veryacademy 3 жыл бұрын
No problem - will do a docker React then docker django react
@SoloPython
@SoloPython 3 жыл бұрын
@@veryacademy i love you!
@naheliegend5222
@naheliegend5222 3 жыл бұрын
What about production? Do you have the real data stored on the machine, where the app is running? In this case in ./data/db?
@mrmuranga
@mrmuranga 3 жыл бұрын
awesome....Thanks for the trouble
@veryacademy
@veryacademy 3 жыл бұрын
No worries! 👍
@dodokwak
@dodokwak 3 жыл бұрын
Thank you.
@sergiaguilar1
@sergiaguilar1 3 жыл бұрын
Why do you need to create another container for every service?
@veryacademy
@veryacademy 3 жыл бұрын
You dont need to. However, once things start to scale then you find that might be the most effective way to work. Also it is easier to manage services this way.
@sergiaguilar1
@sergiaguilar1 3 жыл бұрын
@@veryacademy Ok got it good tutorial tough
@RishiSaikia
@RishiSaikia 3 жыл бұрын
Where does the /var/lib/PostgreSQL/data come from?
@Arjun147gtk
@Arjun147gtk 2 жыл бұрын
Getting an error as below: docker endpoint for "default" not found Please help.
@apurvashirbhate5724
@apurvashirbhate5724 3 жыл бұрын
It is supposed to run both ways with or without docker. Right?
@veryacademy
@veryacademy 3 жыл бұрын
Point is here we can put Postgres and MySQL in a container so that you don't have to installed them on your computer.
@apurvashirbhate5724
@apurvashirbhate5724 3 жыл бұрын
@@veryacademySo it is not supposed to run without docker .Right?
@apurvashirbhate5724
@apurvashirbhate5724 3 жыл бұрын
@@veryacademy So it will give error without docker ?Right?
@apurvashirbhate5724
@apurvashirbhate5724 3 жыл бұрын
@@veryacademy How to check if the data is added into a table or not
@veryacademy
@veryacademy 3 жыл бұрын
A docker container requires docker installed
@shivan2418
@shivan2418 3 жыл бұрын
Is there a way to do the database migration that does not involve doing it manually via bash every time?
@donotlook6048
@donotlook6048 3 жыл бұрын
What do you mean? I'm learning Docker too but when you want to do a migration in your local machine you gotta do it through your OS command prompt. In this case as you are running the django app in a Linux OS container you need to do it via Bash?
@kaushalkhokhar6282
@kaushalkhokhar6282 3 жыл бұрын
Excellent, But I am getting some error which can't be resolved by me. Can you help me on that.... django.db.utils.OperationalError: could not translate host name "db" to address: Temporary failure in name resolution
@veryacademy
@veryacademy 3 жыл бұрын
Hi Kaushal, difficult to fully diagnose without seeing the code. Presume you have named the db service db in the docker file. Best way for me to help you and anyone else if to start a stack overflow post and put the link in here. stackoverflow.com/questions/41573313/docker-compose-with-django-could-not-translate-host-name-db-to-address-name-o
@ayeshrodrigo2197
@ayeshrodrigo2197 3 жыл бұрын
Is there a way to connect these hosted DBs on Docker with MySql Workbench or PG Admin installed on Host PC for monitoring purposes?
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Ayesh I have a running order from other members requests. 6. Deploy to Heroku 7. Django + React 8. Deploy to Digital Ocean 9. PostGres PGAdmin setup
@phaniophrero8007
@phaniophrero8007 2 жыл бұрын
Hi , anyone with this error ? : raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e) django-container2 | django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'. (UPDATE Fix) I had to delete my previous app image and create it again so it could install the psycopg2-binary package.
@Kos37376
@Kos37376 2 жыл бұрын
i dont have 'data' directoty((
@sabarinathjv4829
@sabarinathjv4829 2 жыл бұрын
Those who face pg_config executable not found. add below line inside Dockerfile RUN pip install --upgrade pip RUN pip3 install -r requirements.txt
@veryacademy
@veryacademy 2 жыл бұрын
Could you make an update request on GitHub I will merge it?
@devjeff3192
@devjeff3192 3 жыл бұрын
For those who are getting error: django.db.utils.operationalerror: could not translate host name "db" to address: temporary failure in name resolution You should consider adding the addiotional configs to your docker-compose file: db: image: postgres ports: - 5432:5432 volumes: - pgdata:/var/lib/postgresql/data - pgconf:/etc/postgresql - pglog:/var/log/postgresql environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres container_name: postgres_db volumes: pgdata: driver: local pgconf: driver: local pglog: driver: local
@veryacademy
@veryacademy 3 жыл бұрын
Thank you 🙏
@filipk2834
@filipk2834 2 жыл бұрын
Thank you!
@GoziePO
@GoziePO Жыл бұрын
Thanks! I'm not sure why that fixed it though
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 228 М.
Docker | Towards serving React (Nginx) with Django API (gunicorn)
48:35
Docker | How to Dockerize a Django application (Beginners Guide)
20:08
Python Socket Programming Tutorial
49:43
Tech With Tim
Рет қаралды 1 МЛН
Deploy Django Docker Image to Heroku
1:09:56
Very Academy
Рет қаралды 17 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН