-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Alex Arbuckle edited this page Mar 1, 2024
·
38 revisions
#!/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
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:/app/data
We assume you name the file docker-compose.yaml.