Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Tiempo de lectura: 2 minutos Reading time: < 1 minute Today I’m going to show you how you can connect two containers defined in separate docker-compose.yml files. We have the following: File docker-compose-db.yml: version: "3.1" services: miservicio_mariadb: image: mariadb container_name: mariadb_container env_file: - ./Dockerfile/mysql.env environment: MYSQL_DATABASE: "db" MYSQL_USER: "user" MYSQL_PASSWORD: "pass" MYSQL_ROOT_PASSWORD: "pass_root" volumes: - ./config/mariadb:/var/lib/mysql expose: - 3306 ports: ... Read more

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Tiempo de lectura: 2 minutos Reading time: 2 minutes To connect two separate Docker Compose setups using the same network, you need to create a custom network in Docker and then add all the services from both Docker Compose setups to that custom network. Here is the updated Docker Compose file for Nginx Proxy Manager with the name of the … Read more

Create a Docker Compose with PHP + Nginx + MySQL (MariaDB) + Nginx Proxy Manager (for HTTPS SSL certificates)

Create a Docker Compose with PHP + Nginx + MySQL (MariaDB) + Nginx Proxy Manager (for HTTPS SSL certificates)

Tiempo de lectura: 3 minutos Reading time: 3 minutes In this tutorial, I will show you how to create a docker-compose.yml file to set up a complete local development environment with PHP, NGINX, MariaDB, Nginx Proxy Manager for SSL, and PhpMyAdmin. Getting Started The first thing we need to do is to create a directory on our machine and create … Read more

Most Used docker-compose Commands

Most Used docker-compose Commands

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Here are some of the most useful and commonly used Docker Compose commands along with usage examples: docker-compose up The docker-compose up command is used to build and start the services defined in the docker-compose.yml file. docker-compose up docker-compose down The docker-compose down command is used to stop and remove the … Read more

Communicating two docker-compose.yml using a common network: example of communicating MariaDB with PHPMyAdmin.

Communicating two docker-compose.yml using a common network: example of communicating MariaDB with PHPMyAdmin.

Tiempo de lectura: 3 minutos Reading time: 3 minutes Today I’m going to show you how to communicate two docker-compose using a Docker virtual network. To communicate two Docker containers created using different docker-compose.yml files, it is necessary to use a Docker network. A Docker network is a means of communication between different Docker containers that allows containers to communicate … Read more

Kubernetes with Docker Compose for Managing Workloads

Kubernetes with Docker Compose for Managing Workloads

Tiempo de lectura: 3 minutos Reading time: 3 minutes Step 1: Install Docker and Kubernetes The first thing you need to do is install Docker and Kubernetes on your machine. You can download Docker from its official website and follow the installation instructions for your operating system. To install Kubernetes, you can use a package manager like Homebrew or apt-get … Read more

How to Add Security to Docker Containers or Docker Compose. Prepare a Secure Environment for Your Apps.

How to Add Security to Docker Containers or Docker Compose. Prepare a Secure Environment for Your Apps.

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Adding security to Docker containers is crucial for protecting data and systems within them. Here is a step-by-step tutorial on how to add security to Docker containers and Docker Compose. Use a secure base image: The first security measure is to use a secure base image. A good practice is to … Read more

Create a Docker Container with Node.js, MongoDB, Adminer, and NGINX Proxy Manager for SSL using Docker Compose.

Create a Docker Container with Node.js, MongoDB, Adminer, and NGINX Proxy Manager for SSL using Docker Compose.

Tiempo de lectura: 3 minutos Reading time: 3 minutes In this tutorial, you will learn how to create a Docker container that includes Node.js, MongoDB, Adminer, and NGINX Proxy Manager for SSL using Docker Compose. Step 1: Create the docker-compose.yml file First, create a new directory on your computer for the project, and then create a docker-compose.yml file in the … Read more

Docker Compose: NGINX PROXY MANAGER + PHPMYADMIN + MYSQL + FASTAPI (with Python) REST Service

Docker Compose: NGINX PROXY MANAGER + PHPMYADMIN + MYSQL + FASTAPI (with Python) REST Service

Tiempo de lectura: 2 minutos Reading time: 3 minutes In this tutorial, we will show you how to create a Docker container with NGINX Proxy Manager, phpMyAdmin, MySQL, and FastAPI (with Python) using Docker Compose. This will allow you to have a complete stack for web development and API in a single container. Prerequisites Before getting started, you will need … Read more

Docker compose: FastAPI with MySQL, along with PHPMyAdmin control panel and Traefik proxy manager

Docker compose: FastAPI with MySQL, along with PHPMyAdmin control panel and Traefik proxy manager

Tiempo de lectura: 2 minutos Reading Time: 4 minutes In this tutorial, I will show you how to use Docker Compose to create a FastAPI application with MySQL, along with PHPMyAdmin and the Traefik proxy manager. Docker Compose is a tool that allows you to define and run multi-container Docker applications. Step 1: Install Docker and Docker Compose To use … Read more