-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Alex Arbuckle edited this page Feb 29, 2024
·
38 revisions
#!/bin/bash
externalDataMount="/dev/sdb1";
reposPath="/data/repos";
channelsPath="/data/channels";
projectPath=;
# check if mount needed #
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: always
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.