Easily share code and text.
Requirements:
- Postgres
Setup:
- Clone
- Copy config.template.tomlintoconfig.toml
- Set Database connection DSN.
- Optionally set URLs to a running Redis Instance.
- ! If you haven't already: Create a Database in postgres(Defaultmystbin)
- Install dependencies (Preferably to a venv):pip install -Ur requirements.txt
- Optionally in core/server.pysetignore_localhost=toFalsein the RateLimit Middleware for testing.
- Run: python launcher.py
Requirements
- Docker
- Docker Compose
Setup:
- Clone
- Copy config.template.tomlintoconfig.toml- The default config for database (and redis) should work Out of Box.
- Ensure you change the hostkey to0.0.0.0fromlocalhost
 
- Copy .env.exampleinto.env- The default config should work Out of Box
- The database container doesn't expose connections outside of the network, but for added security edit .envand change the password.
 
- Optionally in core/server.pysetignore_localhost=toFalsein the RateLimit Middleware for testing.
- Run docker compose up -dto start the services.- 
If you want to use redis for session/limit handling, run with the redis profile: docker compose --profile redis up -d
- 
The redis container doesn't expose connections outside of the network, but for added security edit redis.confand change the password.
- 
Backing up the database to the host file system is opt in. You can use the backupprofile with docker-compose to spin up the sidecar container for performing backups.
 
-