filmov
tv
How to run PostgreSQL inside a Docker container
![preview_player](https://i.ytimg.com/vi/cgdUk3-fhSM/maxresdefault.jpg)
Показать описание
I showcase how we can create a docker container running a PostgreSQL Database. We then add some SQL to the database, and go into the container to access the database to check everything works as intended.
Dockerfile:
FROM postgres
ENV POSTGRES_PASSWORD docker
ENV POSTGRES_DB user
Commands:
Build docker image:
docker build -t dbpost .
Run doker contianer from image:
docker run -d --name my-postgresdb-container -p 5432:5432 dbpost
Get into the docker container:
docker exec -it [container id] /bin/bash
Get into postgreSQL:
psql -U postgress
My channel publishes programming and software engineering videos, especially Java and Python. If that is what you are looking for, do not hesitate to join me on this journey!
Subscribe to my YouTube channel:
0:00 Intro
0:35 Dockerfile
1:14 Docker build
2:06 Docker run
3:37 Inside the docker contianer
4:45 Inside PostgreSQL
7:18 Summary
Dockerfile:
FROM postgres
ENV POSTGRES_PASSWORD docker
ENV POSTGRES_DB user
Commands:
Build docker image:
docker build -t dbpost .
Run doker contianer from image:
docker run -d --name my-postgresdb-container -p 5432:5432 dbpost
Get into the docker container:
docker exec -it [container id] /bin/bash
Get into postgreSQL:
psql -U postgress
My channel publishes programming and software engineering videos, especially Java and Python. If that is what you are looking for, do not hesitate to join me on this journey!
Subscribe to my YouTube channel:
0:00 Intro
0:35 Dockerfile
1:14 Docker build
2:06 Docker run
3:37 Inside the docker contianer
4:45 Inside PostgreSQL
7:18 Summary
How to run PostgreSQL inside a Docker container
How to run Postgresql inside Docker for Local Development
Docker PostgreSQL Tutorial with Persistent Data
How to Set Up a PostgreSQL Database with Docker
PostgreSQL in 100 Seconds
Docker and PostgreSQL in [10 Minutes]
Run PostgreSQL using Docker Tutorial
5 Secrets for making PostgreSQL run BLAZING FAST. How to improve database performance.
1 Intro to Django ORM
CREATE A POSTGRESQL DATABASE IN 3 MINUTES WITH DOCKER
How to Create Database and Tables PostgreSQL
How to create a docker-compose setup with PostgreSQL and pgAdmin4
How to run a basic PostGreSQL in Kubernetes!
PostgreSQL (1) Installation and Create Your First Database ( SQL shell / PgAdmin4 )
How to Connect Node js to PostgreSQL Database and Fetch data
Connect to the Docker Postgresql Locally or Remotely
Running a PostgreSQL Database in a Docker Container
How to Install PostgreSQL 15 on Windows 10 [ 2023 Update ] Complete guide | pgAdmin 4
How To Install PostgreSQL on Ubuntu 22.04 LTS (Linux)
Learn PostgreSQL Tutorial - Full Course for Beginners
How To Create And Call A Stored Procedure In PostgreSQL Using pgAdmin4 || Procedure In PostgreSQL
PostgreSQL: How to Connect to Databases | Course | 2019
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
How to replicate PostgreSQL with Docker for beginners
Комментарии