codesmidgen/README.rst
Raoul Snyman 62029b9acd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
Getting things ready to containerize CodeSmigen
- Update the Dockerfile to pull the correct package
- Update the README.rst with environment variables
- Add typing annotations
- Refactor config to be loaded via environment variables as well as a file
2023-07-28 13:07:11 -07:00

997 B

CodeSmidgen

CodeSmidgen is a simple "pastebin" written in Python using Quart, SQLAlchemy, Pygments and a few other libraries.

Installation

The easiest way to install CodeSmidgen is via Docker and Docker Compose. Here's an example config:

version: '3'
services:
  postgres:
    image: postgres:15
    env:
      - POSTGRES_USER=codesmidgen
      - POSTGRES_DB=codesmidgen
      - POSTGRES_PASSWORD=codesmidgen
    restart: unless-stopped
    volumes:
      - "./data/postgres:/var/lib/postgresql/data"
  app:
    image: git.snyman.info/raoul/codesmidgen:latest
    env:
      - SMIDGEN_SECRET_KEY=yoursecrethere
      - SQLALCHEMY_DATABASE_URL=postgres://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.