Self-hosting on Docker
Setup
- Create your
./secrets.json
file as described in selfhost setup - Make sure you also have a google service account file and/or a google oauth2 credentials file
Running Niles on Docker
docker-compose
- Create a folder on your local machine for Niles
- Copy your secrets and service account files and/or oauth2 credentials to this folder as
secrets.json
,niles-sa.json
andniles-oauth.json
respectively - Start Niles with
docker-compose up -d
docker command line
Assuming you are running from a directory with secrets.json
, niles-sa.json
and niles-oauth.json
docker run -d \
--name Niles \
-v ./secrets.json:/usr/src/niles/config/secrets.json \
-v ./niles-sa.json:/usr/src/niles/config/niles-sa.json \
-v ./niles-oauth.json:/usr/src/niles/config/niles-oauth.json \
mchangrh/niles:latest
System Requirements
Recommended OS for just running docker is Alpine Linux or Flatcar Container Linux
One CPU core should be enough for bots serving under 10 Servers
Niles currently has a memory leak so 300MB will let the bot run for about 1 month without crashing