Adding PDO pdo_mysql Extension in Apache + PHP Docker Container

Adding PDO pdo_mysql Extension in Apache + PHP Docker Container

Tiempo de lectura: 2 minutos Reading time: 2 minutes Today I’m going to show you how to install the PDO pdo_mysql extension to use Codeigniter or RedBeans, etc… We have the following docker-compose.yml file: version: “3.1” services: miservicio_mariadb: image: mariadb container_name: mariadb_container env_file: – ./Dockerfile/mysql.env environment: MYSQL_DATABASE: “db_prueba” MYSQL_USER: “user_prueba” MYSQL_PASSWORD: “pass_mysql” MYSQL_ROOT_PASSWORD: “contra@prueba” volumes: – ./config/mariadb:/var/lib/mysql expose: – 3306 … Read more

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

Top Popular and Useful Docker Containers

Top Popular and Useful Docker Containers

Tiempo de lectura: 3 minutos Reading time: 3 minutes Here I bring you a list of some of the most popular and useful Docker containers that exist. Each of these containers is widely used and maintained by the Docker community. Nginx: A fast and lightweight web server and reverse proxy. https://hub.docker.com/_/nginx MySQL: One of the most popular relational database management … 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

Create a Dockerfile with PHP + MySQL (MariaDB)

Create a Dockerfile with PHP + MySQL (MariaDB)

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Here’s an example of a Dockerfile to create a web server with PHP and MariaDB: # Define the Docker base image FROM php:7.4-apache # Update package repositories RUN apt-get update # Install necessary dependencies RUN apt-get install -y \ mariadb-client \ libzip-dev \ zip \ unzip # Install required PHP extensions … 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

Most Used Docker Commands

Most Used Docker Commands

Tiempo de lectura: 2 minutos Reading Time: 2 minutes Below are some of the most useful and commonly used Docker commands along with usage examples: docker run The docker run command is used to start a Docker container from an image. For example, if you want to start an Ubuntu container: docker run ubuntu docker ps The docker ps command … 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