Prerequisites
Before you begin, ensure you have Docker and Docker Compose installed on your system.Deployment Options
Pre-built Image
Fastest way to deploy using official images from GitHub Container Registry
Build from Source
Build and customize the image from source code
Option 1: Using Pre-built Image
This is the recommended method for most users.The default configuration uses an embedded PostgreSQL database stored in the
/data volume. This works out of the box without any additional setup.Option 2: Building from Source
If you want to build from source or customize the image:Access the application
Open http://localhost:3000 in your browser.
Configuration Options
Environment Variables
Environment Variables
Most users can skip this step - defaults work out of the box. Add these to the
environment section in your docker-compose.yml if needed:| Variable | Required | Default | Description |
|---|---|---|---|
APP_URL | No | http://localhost:3000 | Base URL where Anchor is served |
JWT_SECRET | No | (auto-generated) | Auth token secret |
PG_HOST | No | (empty) | External Postgres host (leave empty for embedded) |
PG_PORT | No | 5432 | Postgres port |
PG_USER | No | anchor | Postgres username |
PG_PASSWORD | No | password | Postgres password |
PG_DATABASE | No | anchor | Database name |
USER_SIGNUP | No | (not set) | Sign up mode: disabled, enabled, or review. If not set, admins can control it via the admin panel |
OIDC_ENABLED | No | — | Enable OIDC authentication |
OIDC_PROVIDER_NAME | No | "OIDC Provider" | Display name for the login button |
OIDC_ISSUER_URL | When OIDC enabled | — | Base URL of your OIDC provider |
OIDC_CLIENT_ID | When OIDC enabled | — | OIDC client ID |
OIDC_CLIENT_SECRET | No | — | OIDC client secret. Omit for public client (PKCE) |
DISABLE_INTERNAL_AUTH | No | false | Hide local login form when OIDC is enabled (OIDC-only mode) |
Example with Custom Configuration
Example with Custom Configuration
Next Steps
Mobile App
Download the Android app and connect it to your instance
OIDC Setup
Configure single sign-on with OpenID Connect
Admin Panel
Learn about user management and system settings
View Source
Contribute to the project on GitHub