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

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: https://github.com/veryacademy/docker-mastery-with-django

Subscribe: https://www.youtube.com/c/veryacademy/featured

#docker #dockerizing

What is GEEK

Buddha Community

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

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

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: https://github.com/veryacademy/docker-mastery-with-django

Subscribe: https://www.youtube.com/c/veryacademy/featured

#docker #dockerizing

Hudson  Kunde

Hudson Kunde

1596340980

How to Install and Use Docker Compose on Debian 9

Docker Compose is a tool that allows you to define and orchestrate multi-container Docker applications. It uses a YAML file to configure the application’s containers, networks, and volumes.

Compose can be used for various purposes. Single host application deployments, automated testing, and local development are the most popular use cases for Docker Compose.

This tutorial will walk through the process of installing the latest version of Docker Compose on Debian 9. We’ll also explore the basic Docker Compose concepts and commands.

Prerequisites

Ensure that you have met the following prerequisites before continuing with this tutorial:

  • Logged in as a user with sudo privileges .
  • Have Docker installed on your Debian 9 machine.

Install Docker Compose on Debian

The Docker Compose installation package is available in the official Debian 9 repositories but it may not always be the latest version. The recommended approach is to install Docker Compose from the Docker’s GitHub repository.

At the time of writing this article, the latest stable version of Docker Compose is version 1.23.1. Before downloading the Compose binary visit the Compose repository release page on GitHub and check if there is a new version available for download.

  1. Perform the following steps to install the latest version of Docker Compose on Debian 9:Start by downloading the Docker Compose binary into the /usr/local/bin directory using the following [curl](https://linuxize.com/post/curl-command-examples/) command:
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  1. When the download is complete, give executable permissions to the Compose binary:
sudo chmod +x /usr/local/bin/docker-compose
  1. Verify the installation by typing:
docker-compose --version
  1. The output will look something like this:
docker-compose version 1.23.1, build b02f1306

Getting started with Docker Compose

In this section we will show how to use Docker Compose to manage a WordPress stack on your Debian 9 machine.

#docker #debian 9 #docker compose #yaml file #volumes #networks

Iliana  Welch

Iliana Welch

1595249460

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub

In this video lesson you will learn:

  • What is Docker Host
  • What is Docker Engine
  • Learn about Docker Architecture
  • Learn about Docker client and Docker Daemon
  • Docker Hub and Registries
  • Simple demo to understand using images from registries

#docker #docker hub #docker host #docker engine #docker architecture #api

Paris  Turcotte

Paris Turcotte

1617952320

Creating and filling a Postgres DB with Docker compose

Many times we need to populate and eventually share a database with dummy data, either to test our pipelines, test queries, make a demo of the operation of a new service, or perhaps as a tool to apply testing to the future members of the company.

_Github repo: _https://github.com/jdaarevalo/docker_postgres_with_data

Introduction

Among the various options that we have to solve this requirement is to use or share files such as CSV, parquet, s3, among others, but those have limitations in each of the challenges that we want to face.

This is a problem that can be solved easily by making use of the features that Docker offers to us.

Our goal here will be to create the following tables with their respective foreign keys and fill the tables, while they can be easily shared with other users.

#postgres #docker-compose #fill-tables #docker #postgresql

August  Murray

August Murray

1614993670

Manage Docker Storage & Volumes

Intro to volumes and storage.

TL;DR Overview of how docker storage & volumes work and how to manage them.

In this fourth part of the Dockerventure series, we are going to focus on how docker handles storage, how it manages container file systems, and showcase how we can effectively manage our data with volumes.

Check here for the first 3 parts: Intro DockerDockerfilesUseful Docker commands.

Default Docker File System

By default at creation time, docker creates the directory /var/lib/docker where it stores all its data regarding containers, images, volumes, etc.

When a new container is started, a new **read-write container layer **is added on top of the read-only image layers that were created during the build phase.

This container layer exists only while the container exists and when the container is killed this layer along with all the changes we made on top is lost.

#docker-mount #docker-volume #docker-storage #docker