Merge branch 'staging' into release
| @@ -258,6 +258,7 @@ You will need two mandatory directory mappings and a port mapping to allow Silly | |||
| 258 | * [config] - The directory where SillyTavern configuration files will be stored on your host machine | 258 | * [config] - The directory where SillyTavern configuration files will be stored on your host machine |
| 259 | * [data] - The directory where SillyTavern user data (including characters) will be stored on your host machine | 259 | * [data] - The directory where SillyTavern user data (including characters) will be stored on your host machine |
| 260 | * [plugins] - (optional) The directory where SillyTavern server plugins will be stored on your host machine | 260 | * [plugins] - (optional) The directory where SillyTavern server plugins will be stored on your host machine |
| 261 | * [extensions] - (optional) The directory where global UI extensions will be stored on your host machine | ||
| 261 | 262 | ||
| 262 | ##### Port Mappings | 263 | ##### Port Mappings |
| 263 | 264 | ||
| @@ -273,7 +274,7 @@ You will need two mandatory directory mappings and a port mapping to allow Silly | |||
| 273 | 1. Open your Command Line | 274 | 1. Open your Command Line |
| 274 | 2. Run the following command | 275 | 2. Run the following command |
| 275 | 276 | ||
| 276 | `docker create --name='sillytavern' --net='[DockerNet]' -p '8000:8000/tcp' -v '[plugins]':'/home/node/app/plugins':'rw' -v '[config]':'/home/node/app/config':'rw' -v '[data]':'/home/node/app/data':'rw' 'ghcr.io/sillytavern/sillytavern:[version]'` | 277 | `docker create --name='sillytavern' --net='[DockerNet]' -p '8000:8000/tcp' -v '[plugins]':'/home/node/app/plugins':'rw' -v '[config]':'/home/node/app/config':'rw' -v '[data]':'/home/node/app/data':'rw' -v '[extensions]':'/home/node/app/public/scripts/extensions/third-party':'rw' 'ghcr.io/sillytavern/sillytavern:[version]'` |
| 277 | 278 | ||
| 278 | > Note that 8000 is a default listening port. Don't forget to use an appropriate port if you change it in the config. | 279 | > Note that 8000 is a default listening port. Don't forget to use an appropriate port if you change it in the config. |
| 279 | 280 | ||
| @@ -37,6 +37,9 @@ RUN \ | |||
| 37 | echo "*** Convert line endings to Unix format ***" && \ | 37 | echo "*** Convert line endings to Unix format ***" && \ |
| 38 | dos2unix "./docker-entrypoint.sh" | 38 | dos2unix "./docker-entrypoint.sh" |
| 39 | 39 | ||
| 40 | # Fix extension repos permissions | ||
| 41 | RUN git config --global --add safe.directory "*" | ||
| 42 | |||
| 40 | EXPOSE 8000 | 43 | EXPOSE 8000 |
| 41 | 44 | ||
| 42 | # Ensure proper handling of kernel signals | 45 | # Ensure proper handling of kernel signals |
| @@ -11,4 +11,5 @@ services: | |||
| 11 | - "./config:/home/node/app/config" | 11 | - "./config:/home/node/app/config" |
| 12 | - "./data:/home/node/app/data" | 12 | - "./data:/home/node/app/data" |
| 13 | - "./plugins:/home/node/app/plugins" | 13 | - "./plugins:/home/node/app/plugins" |
| 14 | - "./extensions:/home/node/app/public/scripts/extensions/third-party" | ||
| 14 | restart: unless-stopped | 15 | restart: unless-stopped |