See it live: https://dict.likes.gay
This site is hosted in a Docker container on a Raspberry Pi.
- Written in TypeScript
- Compiled using the first job in the GitHub Action
- Compiles the TypeScript
- Compiles Docker Image
- Pushes to Docker Hub
The easiest and most secure way to run this is using our offcial Docker image.
- Make sure to replace the SECRET_KEY in the command
- The default port it runs on is 8000. Change the first port to change the host port.
- The volume sets where the database file should be stored, so it persits. This defaults to the directory the command is run in.
- The detach argument runs the container in the background.
- The name argument sets the name
docker run -e SECRET_KEY="SET_SECRET_KEY_HERE" --publish 8000:8000 --volume $(pwd)/dict-data:/backend/dict-data --detach --restart always --name Dict likesgay/dict
The Docker container can automatically be updated to the latest image using Watchtower.
We also have a dev branch.
And dev_run.sh
installs all the dependencies and runs those commands.