Switching from Nginx to Apache Docker Container for Local Drupal Development

This guide demonstrates how to transition from an Nginx to Apache Docker container setup for local Drupal development, using Alpine-based images and custom configurations. The solution maintains full container flow control while properly handling .htaccess files and PHP-FPM integration, all managed through a Makefile-based workflow with Traefik as a reverse proxy.

Docker + traefik: communication between containers is broken

After installing fresh "Ubuntu 22.04.3 LTS" I found one of my docker environment broken.
By previous setup containers should see each other by it's host names which is configured in traefik.
Error was cURL error 7: Failed to connect to test.my-docker.localhost port 443 after 0 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://test.my-docker.localhost/