Configuration Overview
MemGhost is configured through environment variables and Docker Compose settings. The defaults work for local development and most self-hosted deployments.
Configuration Methods
Environment Variables
The primary configuration mechanism. Set them in your shell, .env file, or docker-compose.yml. See Environment Variables for the full reference.
Docker Compose
Service definitions, volume mounts, and networking are configured in docker-compose.yml. See Docker Compose for details.
Database
PostgreSQL connection settings and migration management. See Database.
Ports & Networking
Port mappings and Docker networking configuration. See Ports & Networking.
Quick Reference
The most commonly changed settings:
| Setting | Default | Description |
|---|---|---|
DATABASE_URL | postgres://memghost:memghost@db:5432/memghost?sslmode=disable | PostgreSQL connection string |
PORT | 8080 | Backend API port (inside container) |
| Host port for API | 8088 | Set in docker-compose port mapping |
| Host port for frontend | 3300 | Set in docker-compose port mapping |
NEXT_PUBLIC_API_URL | http://localhost:8088 | API URL used by the browser |