Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.02 KB

Running in Docker

In the root directory there's a docker-compose.yml file which defines the Chatterino API, a PostgreSQL database, and Prometheus

You can configure those with the env and chatterino2-api.env files in this directory.

If you're going to make changes to the env files directly in the repo, you will want to ignore them locally:
git update-index --assume-unchanged env chatterino2-api.env

Forwarding prometheus

If you want to forward prometheus at a different route, you'll need to add a --web.route-prefix to the command in the docker-compose.yml file. For example:

     command:
       - '--config.file=/etc/prometheus/prometheus.yml'
       - '--storage.tsdb.path=/prometheus'
+      - '--web.route-prefix=/prometheus'

Changing the base URL

If you host this service under a subpath, you'll need to add and modify the CHATTERINO_API_BASE_URL environment variable to the chatterino2-api.env file. For example:

CHATTERINO_API_BASE_URL=https://braize.pajlada.com/chatterino