Web apps and frameworks: Docker Compose stacks
These stacks run a web application next to the services it needs on day one: a relational database, a cache, sometimes a worker or a reverse proxy. Each compose file keeps the app container stateless, stores data in named volumes and waits for the database healthcheck before starting, so the first boot does not race the migrations. Use them as a local development environment that behaves like production, or as the starting point for a single-server deployment. Every page lists the ports it publishes, the variables your .env needs and the checks to run before you put real users on it.
Directus + PostgreSQL
Run Directus 11 headless CMS on PostgreSQL 16 in Docker Compose, with required keys, admin bootstrap, persistent uploads, a health check and a checklist.
Django + PostgreSQL + Celery
Run a Django app with Gunicorn, PostgreSQL 16, Redis 7 as the Celery broker and a Celery worker in Docker Compose, with healthchecks and a production checklist.
Ghost + MySQL
Run the Ghost publishing platform with MySQL 8.4 in Docker Compose, with persistent content storage, a database healthcheck and a production checklist.
Laravel + PostgreSQL + Redis
Run a Laravel app on Apache with PostgreSQL 16 and Redis 7 in Docker Compose, with a Dockerfile, queue and cache settings, volumes and a production checklist.
Next.js + PostgreSQL + Redis
Containerize a Next.js app with PostgreSQL 16 and Redis 7 in Docker Compose, using a minimal Dockerfile, healthchecks, named volumes and a production checklist.
Node.js + Express + MongoDB
Run a Node.js Express API with MongoDB 7.0 in Docker Compose, using a non-root image, authenticated database access, a healthcheck and a checklist.
Nuxt + PostgreSQL
Run a Nuxt 3 app built with Nitro and PostgreSQL 16 in Docker Compose, with a Node 22 Dockerfile, a database healthcheck, persistent data and a checklist.
Rails + PostgreSQL + Redis
Run a Ruby on Rails app with PostgreSQL 16 and Redis 7 in Docker Compose, with a slim Ruby 3.3 Dockerfile, database setup, persistent data and a checklist.
Spring Boot + MariaDB
Run a Spring Boot 3 API on Java 21 with MariaDB 11.4 in Docker Compose, with a JRE image, datasource variables, a database healthcheck and a checklist.
Strapi + PostgreSQL
Run a Strapi 5 headless CMS with PostgreSQL 16 in Docker Compose, using a Node 22 image, secret variables, persistent uploads and a production checklist.
WordPress + MySQL + phpMyAdmin
Run WordPress with MySQL 8.4 and phpMyAdmin in Docker Compose, with persistent volumes, healthchecks, a local-only admin panel and a production checklist.