Nocigar commited on
Commit
fe52598
1 Parent(s): ce079f7

Upload 2 files

Browse files
docker/docker-compose.yml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: "3"
2
+ services:
3
+ sillytavern:
4
+ build: ..
5
+ container_name: sillytavern
6
+ hostname: sillytavern
7
+ image: ghcr.io/sillytavern/sillytavern:latest
8
+ ports:
9
+ - "8000:8000"
10
+ volumes:
11
+ - "./config:/home/node/app/config"
12
+ - "./data:/home/node/app/data"
13
+ - "./plugins:/home/node/app/plugins"
14
+ restart: unless-stopped
docker/docker-entrypoint.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ if [ ! -e "config/config.yaml" ]; then
4
+ echo "Resource not found, copying from defaults: config.yaml"
5
+ cp -r "default/config.yaml" "config/config.yaml"
6
+ fi
7
+
8
+ # Start the server
9
+ exec node server.js --listen