This is a mono-repository for all our docker base images we use in our projects. Currently, we have multiple tech-stacks for NODE.js and PHP. We have a unique tag for each minor release of those stacks. The base images come with a bunch of extensions already preconfigured.
Note: As we are a company based in Germany, the locale and timezone are already preconfigured for Germany!
We have multiple variants for each tech stack. By default, each stack has a base variant and a dev variant. The "-dev" variant is used for local development and for installing / building dependencies (composer/npm) in the CI pipeline. The production image, on the other hand, only inherits from the base image, so only the required code ends up in your prod environment.
- stackxx:
labordigital/docker-base-images:phpxx
The root image the other variants inherit from - stackxx-dev:
labordigital/docker-base-images:phpxx-dev
The base image with additional helpers for the development environment like composer already installed.
For some PHP Versions, we provide an "extended" version, which includes Imagick, SOAP and poppler-utils (PDF-to-text) already pre-installed
- stackxx-ext:
labordigital/docker-base-images:phpxx-ext
The base image with imagick, SOAP and poppler-utils (PDF-to-text) already pre-installed - stackxx-ext-dev:
labordigital/docker-base-images:phpxx-ext-dev
The extended base image with additional helpers for the development environment
All packages starting from PHP >= 7.2 and NODE >= 10 have a different shell file setup than the older images. To provide a smooth transition for existing projects, the PHP images for versions 7.2 and 7.3, as well as the upcoming PHP 7.4, will have an additional "-legacy" variant that still has the same .sh file setup. PHP >= 7.5 will NO LONGER get those legacy versions, so update your scripts to match before migrating
All environment variables that are inherited from the base image (PHP | NODE)
In addition we have those two environment variables for the packages
- PROJECT_ENV ("prod") Helper to define the environment for your application. SHOULD BE "dev", "staging" or "prod";
- APACHE_WEBROOT ("/var/www/html") Defines the apache webroot directory
In some stack directories, you will find a "boilerplate" folder, containing a basic project implementation using the images. To use them, clone them to your device, search and replace "§PROJECT_NAME§" in the sources, with a name of your liking and start the development environment using docker-compose up.
If you want more convenience, you can use our CLI tool.
You're free to use these images, but if it makes it to your production environment, we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany.
We publish all received postcards on our company website.