SillyTavern with proper config for cloud hosting
Browse files- Dockerfile +1 -1
- config/config.yaml +1 -1
- docker/docker-entrypoint.sh +2 -2
Dockerfile
CHANGED
|
@@ -46,7 +46,7 @@ RUN git config --global --add safe.directory "*"
|
|
| 46 |
# Ensure data directory exists and is writable
|
| 47 |
RUN mkdir -p /home/node/app/data && chmod 777 /home/node/app/data
|
| 48 |
|
| 49 |
-
EXPOSE
|
| 50 |
|
| 51 |
# Ensure proper handling of kernel signals
|
| 52 |
ENTRYPOINT ["tini", "--", "./docker-entrypoint.sh"]
|
|
|
|
| 46 |
# Ensure data directory exists and is writable
|
| 47 |
RUN mkdir -p /home/node/app/data && chmod 777 /home/node/app/data
|
| 48 |
|
| 49 |
+
EXPOSE 8000
|
| 50 |
|
| 51 |
# Ensure proper handling of kernel signals
|
| 52 |
ENTRYPOINT ["tini", "--", "./docker-entrypoint.sh"]
|
config/config.yaml
CHANGED
|
@@ -7,7 +7,7 @@ listenAddress:
|
|
| 7 |
protocol:
|
| 8 |
ipv4: true
|
| 9 |
ipv6: false
|
| 10 |
-
port:
|
| 11 |
whitelistMode: false
|
| 12 |
basicAuthMode: false
|
| 13 |
securityOverride: true
|
|
|
|
| 7 |
protocol:
|
| 8 |
ipv4: true
|
| 9 |
ipv6: false
|
| 10 |
+
port: 8000
|
| 11 |
whitelistMode: false
|
| 12 |
basicAuthMode: false
|
| 13 |
securityOverride: true
|
docker/docker-entrypoint.sh
CHANGED
|
@@ -16,5 +16,5 @@ ln -sf "./config/config.yaml" "./config.yaml" 2>/dev/null || true
|
|
| 16 |
# Execute postinstall to auto-populate config.yaml with missing values
|
| 17 |
npm run postinstall
|
| 18 |
|
| 19 |
-
# Start the server on port
|
| 20 |
-
exec node server.js --port
|
|
|
|
| 16 |
# Execute postinstall to auto-populate config.yaml with missing values
|
| 17 |
npm run postinstall
|
| 18 |
|
| 19 |
+
# Start the server on port 8000 explicitly
|
| 20 |
+
exec node server.js --port 8000 --listen "$@"
|