Database
Norish stores its data in PostgreSQL. Set the connection with
DATABASE_URL:
docker-compose.yml (environment)
DATABASE_URL: postgres://postgres:norish@db:5432/norish
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgres://user:pass@db:5432/norish |
Separate variables
Without DATABASE_URL, Norish builds the URL from the variables below. With
none of them set, it uses postgresql://postgres:norish@localhost:5432/norish.
| Variable | Description | Default |
|---|---|---|
DATABASE_HOST | PostgreSQL host | localhost |
DATABASE_PORT | PostgreSQL port | 5432 |
DATABASE | Database name | norish |
DATABASE_USER | Database username | postgres |
DATABASE_PASSWORD | Database password | norish |