Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b-ggs/dokku-glitchtip
🐳 self-host a glitchtip instance on dokku
https://github.com/b-ggs/dokku-glitchtip
dokku glitchtip
Last synced: 17 days ago
JSON representation
🐳 self-host a glitchtip instance on dokku
- Host: GitHub
- URL: https://github.com/b-ggs/dokku-glitchtip
- Owner: b-ggs
- Created: 2022-04-13T04:50:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T18:06:24.000Z (4 months ago)
- Last Synced: 2024-07-31T20:32:46.188Z (3 months ago)
- Topics: dokku, glitchtip
- Language: Procfile
- Homepage:
- Size: 28.3 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Install-anything-on-Dokku - GlitchTip - source reimplementation of Sentry (Monitoring)
README
# GlitchTip on Dokku
This repository contains all the information needed to self-host a GlitchTip v4 instance on Dokku.
If you are looking to self-host to Heroku or DigitalOcean App Platform, please refer to [GlitchTip's own meta repo and documentation](https://gitlab.com/glitchtip/glitchtip). This repository is specifically for Dokku only.
## Requirements
- Dokku 0.28.1 (cannot guarantee this works on older versions of Dokku)
## Installation
### Create the Dokku app
On your Dokku host, create an app for GlitchTip
```bash
dokku apps:create glitchtip
```### Set up Postgres and Redis
Ensure that the Postgres and Redis plugins are installed
```bash
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
sudo dokku plugin:install https://github.com/dokku/dokku-redis.git redis
```Create a Postgres service and link it to your GlitchTip app
```bash
dokku postgres:create glitchtip-postgres
dokku postgres:link glitchtip-postgres glitchtip
```Create a Redis service and link it to your GlitchTip app
```bash
dokku redis:create glitchtip-redis
dokku redis:link glitchtip-redis glitchtip
```### Deploy GlitchTip to Dokku
Clone this repository to your local machine
```bash
git clone https://github.com/b-ggs/dokku-glitchtip.git
cd dokku-glitchtip
```Add a new remote to the git repository pointing to your Dokku host
```bash
# Replace `dokku.me` with your Dokku host's domain or IP address
git remote add dokku [email protected]:glitchtip
```Push to your new `dokku` remote to start deploying GlitchTip
```bash
git push dokku main
```Dokku by default does not deploy the GlitchTip Celery worker.
On your Dokku host, run the Celery worker by scaling the `worker` service up to `1`.
```bash
dokku ps:scale glitchtip worker=1
```### Configure HTTPS/SSL
Set up HTTPS/SSL with your preferred method. Dokku has a [LetsEncrypt plugin](https://github.com/dokku/dokku-letsencrypt) you can use to get certificates.
### Configure ports
GlitchTip listens on port 8080. Configure Dokku to forward requests from port 80 and 443 to GlitchTip.
```bash
dokku proxy:ports-set glitchtip http:80:8080 https:443:8080
```### Configure GlitchTip
Set your domain
```bash
# Replace `glitchtip.dokku.me` with your domain
dokku config:set glitchtip GLITCHTIP_DOMAIN=https://glitchtip.dokku.me
```Set a secret key.
```bash
dokku config:set glitchtip SECRET_KEY=$(python3 -c "import secrets; print(''.join(secrets.choice([chr(i) for i in range(0x21, 0x7F)]) for i in range(60)));")
```Create your GlitchTip superuser
```bash
dokku run glitchtip ./manage.py createsuperuser
```Refer to the [GlitchTip Configuration documentation](https://glitchtip.com/documentation/install#configuration) for other variables you can set such as for e-mail notifications, etc.
### Start using GlitchTip!
You're now fully set up to use GlitchTip! Go to the address you've set for your GlitchTip app and log in with your superuser to get started!
## References
- [GlitchTip's Configuration Documentation](https://glitchtip.com/documentation/install#configuration)
- [GlitchTip's meta repo on self-hosting on Heroku and DigitalOcean App Platform](https://gitlab.com/glitchtip/glitchtip)