Skip to content
memghost.com Open App

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:

SettingDefaultDescription
DATABASE_URLpostgres://memghost:memghost@db:5432/memghost?sslmode=disablePostgreSQL connection string
PORT8080Backend API port (inside container)
Host port for API8088Set in docker-compose port mapping
Host port for frontend3300Set in docker-compose port mapping
NEXT_PUBLIC_API_URLhttp://localhost:8088API URL used by the browser