composebuilder

Docker Compose builder

Pick services, then edit ports, volumes, variables, networks and healthchecks. You get a docker-compose.yml, a matching .env with generated passwords, and a list of problems to fix before you run it. Everything stays in your browser.

Compose builder

Services 0

  • Loading…

Networks

    docker-compose.yml

    Checks

      Add a service

      Import a compose file

      Parsed in your browser. Keys the builder does not edit, such as build or labels, are kept unchanged.

      From blank file to running stack

      1. Add the services you need

        Each template uses an official image with a pinned tag, a named volume for data and a healthcheck where the image supports one. Adding WordPress or pgAdmin also adds the database it needs.

      2. Fix what the checks flag

        Duplicate host ports, dependencies on services that do not exist, variables missing from .env and databases open to the network show up as you type, each with a fix.

      3. Download both files and start

        Save docker-compose.yml and .env in the same folder, then run docker compose up -d and docker compose ps to watch the healthchecks turn healthy.

      Start from a tested stack

      All 38 stacks

      Complete compose files with a .env, start and verify commands, a production checklist and fixes for common errors. Open any of them in the builder to adapt it.

      Web apps and frameworks

      • 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.

        • directus
        • db
        Difficulty: Intermediate
      • 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.

        • web
        • worker
        • db
        • redis
        Difficulty: Advanced
      • 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.

        • ghost
        • mysql
        Difficulty: Beginner
      • 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.

        • app
        • db
        • redis
        Difficulty: Intermediate

      See all 11 in Web & Frameworks

      • ClickHouse 25.8 Analytics Database

        Docker Compose stack for ClickHouse 25.8 with a dedicated user, a healthcheck, raised file limits and HTTP and native ports on localhost for analytical queries.

        • clickhouse
        Difficulty: Advanced
      • Elasticsearch 8 + Kibana Search Stack

        Docker Compose stack for Elasticsearch 8.19 and Kibana 8.19 with security enabled, a persistent volume, a healthcheck and localhost-only ports.

        • elasticsearch
        • kibana
        Difficulty: Advanced
      • FastAPI + MongoDB 7 + Mongo Express

        Docker Compose stack for a Python FastAPI API on MongoDB 7 with authentication, a healthcheck, persistent storage and a protected Mongo Express UI on localhost.

        • api
        • mongodb
        • mongo-express
        Difficulty: Intermediate
      • MariaDB 11.4 LTS + Adminer 5

        Docker Compose stack with MariaDB 11.4 LTS, a healthcheck, a named volume and Adminer 5 on localhost. A lightweight admin UI for MySQL-compatible databases.

        • mariadb
        • adminer
        Difficulty: Beginner

      See all 10 in Databases & Search

      Infrastructure and monitoring

      • Caddy 2 Reverse Proxy + Static Web Server

        Caddy 2 in Docker Compose: serve a static site, proxy /api to a backend and get automatic HTTPS on a real domain. Pinned images and .env configuration.

        • caddy
        • whoami
        Difficulty: Beginner
      • Gitea Git Server with PostgreSQL 16

        Self-hosted Gitea with PostgreSQL 16 in Docker Compose: web Git hosting, SSH on port 2222, a healthcheck-gated database start and persistent volumes.

        • gitea
        • db
        Difficulty: Intermediate
      • Loki, Promtail and Grafana Log Stack

        Collect Linux host logs with Loki and Promtail in Docker Compose and query them in Grafana. Pinned images, persistent volumes and a localhost-only Grafana port.

        • loki
        • promtail
        • grafana
        Difficulty: Intermediate
      • Portainer CE Web UI for Docker Management

        Run Portainer CE in Docker Compose as a web UI for containers, images and volumes. Bound to localhost on HTTPS 9443, with persistent data and a pinned image.

        • portainer
        Difficulty: Intermediate

      See all 9 in Infrastructure & Monitoring

      Automation, AI and self-hosted apps

      • Home Assistant Smart Home Hub

        Run Home Assistant 2026.10 in Docker Compose with a pinned image, persistent config volume, timezone setup and reverse proxy notes for secure remote access.

        • homeassistant
        Difficulty: Intermediate
      • n8n Workflow Automation with PostgreSQL

        Self-host n8n 2.48 with PostgreSQL 16 in Docker Compose: encrypted credentials, database healthcheck, loopback-only port and a production checklist.

        • postgres
        • n8n
        Difficulty: Intermediate
      • Nextcloud + MariaDB + Redis File Sync

        Self-host Nextcloud with MariaDB 11.4 and Redis in Docker Compose. Pinned tags, database healthcheck, memory cache and the production steps for HTTPS and cron.

        • nextcloud
        • db
        • redis
        Difficulty: Intermediate
      • Ollama + Open WebUI Local AI Chat

        Run local AI models with Ollama and a chat interface with Open WebUI in Docker Compose. Pinned images, a health check, loopback-only access and RAM guidance.

        • ollama
        • open-webui
        Difficulty: Beginner

      See all 8 in Automation, AI & Self-Hosted

      Questions

      Is my compose file sent to a server?

      No. The builder runs entirely in your browser. Your design is saved in this browser’s local storage so it survives a reload, and passwords are generated locally with the Web Crypto API.

      Which Docker Compose version does the output target?

      The output follows the current Compose Specification used by Docker Compose v2 (the docker compose command). It does not include the obsolete top-level version key, which Compose v2 ignores and warns about.

      Can I edit a compose file I already have?

      Yes. Use Import and paste your docker-compose.yml, and optionally your .env. Keys the builder does not edit, such as build, labels or deploy, are kept and written back unchanged.

      What does a share link contain?

      The services, ports, volumes and variable names of your design, compressed into the part of the URL after #, which browsers never send to the server. Password values are removed and regenerated when someone opens the link.

      Why are database ports bound to 127.0.0.1?

      A database published as 5432:5432 is reachable from every network the host is on, and Docker’s port publishing bypasses most host firewalls. Binding to 127.0.0.1 keeps it reachable from the host only; other containers reach it by service name on the internal network.