codesmidgen/README.rst

35 lines
999 B
ReStructuredText
Raw Normal View History

===========
2023-07-28 06:19:20 +00:00
CodeSmidgen
===========
2023-07-28 06:19:20 +00:00
CodeSmidgen is a simple "pastebin" written in Python using Quart, SQLAlchemy, Pygments and a few other libraries.
Installation
------------
2023-07-28 06:19:20 +00:00
The easiest way to install CodeSmidgen is via Docker and Docker Compose. Here's an example config:
.. code-block:: yaml
version: '3'
services:
postgres:
image: postgres:15
env:
2023-07-28 06:19:20 +00:00
- POSTGRES_USER=codesmidgen
- POSTGRES_DB=codesmidgen
- POSTGRES_PASSWORD=codesmidgen
restart: unless-stopped
volumes:
- "./data/postgres:/var/lib/postgresql/data"
app:
2023-07-28 06:19:20 +00:00
image: git.snyman.info/raoul/codesmidgen:latest
env:
- SMIDGEN_SECRET_KEY=yoursecrethere
- SQLALCHEMY_DATABASE_URI=postgresql://codesmidgen:codesmidgen@postgres/codesmidgen
restart: unless-stopped
ports:
- "127.0.0.1:8000:8000"
Once you have that up and running, you can set up NGINX or another reverse proxy to port 8000 on 127.0.0.1.