Install Atrium
Docker Compose, published images, no build step. Takes a few minutes.
Requirements
Requires Docker and Docker Compose (bundled with Docker Desktop and modern Docker Engine installs).
1. Clone the repo
git clone https://github.com/agent-squirrel/Atrium.git
cd Atrium2. Configure your environment
Copy the example env file and fill in the required values - each has a one-line command to generate it.
cp backend/.env.example backend/.envAt minimum, backend/.env needs:
SECRET_KEY=... # python3 -c "import secrets; print(secrets.token_hex(32))"
JWT_SECRET_KEY=... # python3 -c "import secrets; print(secrets.token_hex(32))"
POSTGRES_PASSWORD=... # python3 -c "import secrets; print(secrets.token_urlsafe(24))"
ENCRYPTION_KEY=... # python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"Behind another reverse proxy?
If Atrium will sit behind another reverse proxy (Caddy, Traefik, a cloud load balancer) rather than facing the internet directly, also set TRUSTED_PROXY_CIDR to that proxy's address so guest IPs are logged correctly instead of the proxy's own.
3. Start the stack
This pulls the published backend and web images and brings up Postgres alongside them.
docker compose up -d4. Finish setup in the browser
Open http://localhost/admin/. You'll land on the first-run setup wizard to create your superadmin account - or restore from an existing Atrium backup, if you have one.
5. Point UniFi at it
In the UniFi controller: Client Devices → Hotspot → Landing Page, and enter this server's address.
Building from source, contributing, or want hot-reload for frontend work instead? See DEVELOPMENT.md.