mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-23 04:52:40 +00:00
1,009 B
1,009 B
Using SQLite
By default, Opengist uses SQLite as the database backend.
Because SQLite is a file-based database, there is not much configuration to tweak.
The configuration db-uri
/OG_DB_URI
refers to the path of the SQLite database file relative in the $opengist-home/
directory (default opengist.db
),
although it can be left untouched.
The SQLite journal mode is set to WAL
(Write-Ahead Logging) by default and can be changed.
YAML
sqlite.journal-mode: WAL
Environment variable
OG_SQLITE_JOURNAL_MODE=WAL
Docker Compose
services:
opengist:
image: ghcr.io/thomiceli/opengist:1
container_name: opengist
restart: unless-stopped
ports:
- "6157:6157" # HTTP port
- "2222:2222" # SSH port, can be removed if you don't use SSH
volumes:
- "$HOME/.opengist:/opengist"
environment:
OG_SQLITE_JOURNAL_MODE: WAL
# other configuration options