Skip to content
Alex Arbuckle edited this page Mar 1, 2024 · 38 revisions

Boot Script

#!/bin/bash


externalDataMount=;

reposPath="/data/repos";
channelsPath="/data/channels";
projectPath=;


# check if external data #
if [ -n "$externalDataMount" ]; then

  sudo mount $externalDataMount $projectPath/data;

fi


# if fresh installation #
if [ ! -d "$projectPath$reposPath" ]; then

  sudo mkdir $projectPath$reposPath;
  sudo mkdir $projectPath$channelsPath;

fi


sudo docker-compose -f $projectPath/docker-compose.yaml pull;
sudo docker-compose -f $projectPath/docker-compose.yaml up;

insert


Docker Compose

version: '3.8'

services:
  kinma:
    restart: "no"
    image: lxrbckl/project-kinma:latest
    environment:
      - tokenDiscord=
      - tokenOctokit=

      - guildId=
      - channelId=
      - applicationId=

      - messageDepth=100

      - settingLink=
      - dataFilePath=
      - reposFilePath=
      - settingFilePath=
      - channelsFilePath=
    volumes:
      - /path/on/HOST:/path/in/CONTAINER

We assume you name the file docker-compose.yaml.


Clone this wiki locally