Layers for developers

Self-hosted Layers 3.0.1: what one compose file runs

The self-hosted page lists Version 3.0.1 · 14 Nov 2026. Everything is in one docker-compose.yml that you do not edit; your settings live next to it in .env.

Eight services, one file

Service Image or ports
Layers app hissih/layers:3.0.1
PostgreSQL pgvector/pgvector:pg16
Redis redis:7-alpine
LiveKit calls TCP 7881 · UDP 7882 · UDP 3478
Caddy, automatic HTTPS TCP 80 · UDP 443
entry443 TCP 443

Two more services are browser editors that sit behind the web server.

Before you start

  • Linux x86-64; tested on Ubuntu 22.04 and 24.04, Debian 12+ also fits
  • Docker 24 or newer with docker compose
  • Memory: 4 GB minimum, 8 GB recommended; disk 25 GB, 2 cores
  • Two A records, e.g. layers.example.com and turn.layers.example.com

Run and check

cd /opt/layers && sudo docker compose up -d, then sudo docker compose ps -a: layers is healthy, prepare and migrate are Exited (0). Updating is the same command.

Example

Illustrative example only. A clean 2-core, 4 GB VM. The page's own test on 15 Nov: after two people edited files, all services at rest took about 2.2 GB, Layers itself 1.4 GB.

⚠️ Important

The Layers service needs at least 1.5 GB: with 1 GB it does not come up, and the start waits about seven minutes before answering “unhealthy”. Keep a copy of .env: without it the server cannot be restored from a backup.

Before the install window

  • ☐ Linux x86-64 with 4 GB or more
  • ☐ Two A records point to the server
  • ☐ Ports 80 and 443 open, plus call ports
  • ☐ A safe place for the .env copy

Project plan, ready: one owner and one status per install step 👇

Source: layers.md/self-hosted (Version 3.0.1) and the installation guide for AI assistants, layers.md/self-hosted/llms.txt.

Source