Creating a development environment with Docker

Creating a development environment with Docker

To create this dev environment I’ll be using docker-compose in order to manage the whole environment with a single command. This environment can be run locally or remotely as only a shell connection is required.

To create this dev environment I’ll be using docker-compose in order to manage the whole environment with a single command. This environment can be run locally or remotely as only a shell connection is required.

A docker-compose.yaml file will be created to define all de system dependencies the application. Depending on the system architecture this file can be used to deploy in production, but usually this is not possible if we are using Kubernetes or Aws ECS in production.

In this example a simple Symfony app, that uses MySql and Elasticseach will be used.

Installing docker in Ubuntu

Using docker-compose

Is quite possible that a project requires some external dependencies like Mysql, MariaDB, Redis, Memcached or Elasticsearch. Al this dependencies should be available in a simple way during development (and probably during CI/CD time).

Docker-compose us a Docker tool that allows to build, run and stop several containers with a single command. The needed config is in a single file in which is defined which images to use, exposed ports, environment variables…

symfony docker docker-compose

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

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.

Sharing a Cached Layer Between Docker and Docker Compose Builds

This article is the second part of our exploration of Docker caching — if you haven’t already, check out the first part, where we introduced Docker layers and the caching mechanism. Let’s now have a look at Docker Compose and some of the challenges when using both Docker and Docker Compose at the same time. Sharing a Cached Layer Between Docker and Docker Compose Builds

Apache/Airflow and PostgreSQL with Docker and Docker Compose

In this post I will show you how to set up official Apache/Airflow with PostgreSQL and LocalExecutor using docker and docker-compose. In this post, I won’t be going through Airflow, what it is, and how it is used. Please check the official documentation for more information about that.

Deploy a Tomcat Application Using Docker-Compose

In this blog, we will learn what is docker-compose and how we can deploy a tomcat application which uses mysql database. We will learn how we can setup a development environment using docker-compose in a single command

Setting up NodeJS with MongoDB using Docker and Docker Compose

Setting up NodeJS with MongoDB using Docker and Docker Compose - Learn about Docker and how to spin up a Docker orchestration for your development environment so, that way, you don't have to install MongoDB, you can just r...