Initial commit

This commit is contained in:
Cohee
2023-07-20 20:32:15 +03:00
commit edd41989fd
362 changed files with 76295 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
version: "3"
services:
sillytavern:
build: ..
container_name: sillytavern
hostname: sillytavern
image: sillytavern/sillytavern:latest
ports:
- "8000:8000"
volumes:
- "./config:/home/node/app/config"
- "./config.conf:/home/node/app/config.conf"
restart: unless-stopped
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# Initialize missing user files
IFS="," RESOURCES="characters,groups,group chats,chats,User Avatars,worlds,settings.json"
for R in $RESOURCES; do
if [ ! -e "config/$R" ]; then
echo "Resource not found, copying from defaults: $R"
cp -r "public/$R.default" "config/$R"
fi
done
# Start the server
exec node server.js