Docker

Francesco Ciannavei

Docker

I started using Docker at TUN2U and it's been a core part of my work ever since, first of all for consistent, reproducible development environments. Every PHP app I work on, whether plain PHP, Laravel or CodeIgniter, runs locally in DDEV, a Docker-based environment.

A CodeIgniter 4 project type for DDEV

At STCC I was migrating software for parliamentary legislation from CodeIgniter 3 to 4, and developing it in DDEV. DDEV configures projects according to their type, but there was no type for CodeIgniter 4. I wrote it and submitted it as pull request #7853, which was merged and fixed issue #7303.

A local RAG system in one command

In Local RAG Example, my open-source RAG in Go, a Docker Compose file starts PostgreSQL with pgvector, Ollama, a container that pulls the models, and the Go app. Healthchecks hold the app back until the database is ready and the models are downloaded.

This site's services

This site's CMS and visits tracker, both Laravel apps, run in Docker on a home server, together with PostgreSQL (I cover them on the Laravel and SQL pages).

Technical skills

I write optimised Dockerfiles, configure Docker Compose to orchestrate several services, and manage volumes for data persistence. At HSPI local development runs on Docker. Even my script for creating Apache virtual hosts ships with a Dockerfile to test it in a container: it's on the Bash page.

Rating
7/10

Where i've used it: