Develop, Dockerize & Deploy Contao 4: Part 1

A series about how to manage source code, dockerizing and automatically deploying your Contao 4 application.

Generic Cover image
Generic Cover image

Introduction: Docker and basic principles

Strategic thoughts before we start

Part 1: Setting up your development environment and Git

Installing Docker

Screenshot showing how to enter the Windows Subsystem for Linux
Screenshot showing how to enter the Windows Subsystem for Linux
Choose the Distro from the dropdown menu or type “wsl” to enter the standard Distro.

Setup Git

Create the basic Contao 4 container image

.gitignore file for Contao 4
Dockerfile for a Contao 4 Installation with Symfony Encore
The complete directory with all files and directories
Working Container showing an empty Contao 4 Installation

Software Developer, avid reader, curious human

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store