Install Loki Plugin for Docker on ARM64

Install Loki Plugin for Docker on ARM64

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute When we install the Loki plugin for Docker on ARM64, we encounter an error. To solve this, we need to do the following: First, we install the plugin to create the directories: docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions Now, we install GO: Go outside the Docker folder and execute: ... Read more

Fixing ‘Call to undefined function imagecreatefromjpeg()’ error in PHP Docker container by importing PHP GD extension

Fixing ‘Call to undefined function imagecreatefromjpeg()’ error in PHP Docker container by importing PHP GD extension

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If we are using image processing functions in PHP, we need to install and enable PHP GD in the Docker container. To do this, we go to our Dockerfile and add the following: # syntax=docker/dockerfile:1 FROM php:7.2.5-apache RUN docker-php-ext-install mysqli RUN docker-php-ext-install pdo_mysql RUN apt-get update && \ apt-get install ... Read more

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

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