chore(reasonix): add Dockerfile, .dockerignore, refine compose.yml

This commit is contained in:
Gan, Jimmy
2026-07-11 05:26:06 +08:00
parent 9159363b93
commit a334f55575
3 changed files with 29 additions and 11 deletions
+6 -11
View File
@@ -1,6 +1,9 @@
services:
reasonix:
image: node:alpine
build:
context: .
dockerfile: Dockerfile
image: reasonix:latest
container_name: reasonix
restart: unless-stopped
labels:
@@ -11,18 +14,10 @@ services:
- DEEPSEEK_LOCAL_API_KEY=${DEEPSEEK_LOCAL_API_KEY}
- TZ=Asia/Shanghai
volumes:
- ./reasonix.toml:/home/node/.reasonix/config.toml:ro
- ./data:/home/node/.reasonix
- ./reasonix.toml:/home/reasonix/.reasonix/config.toml:ro
- ./data:/home/reasonix/.reasonix
networks:
- nas-dashboard_internal
working_dir: /home/node
user: node
command:
- sh
- -c
- |
npm install -g reasonix@1.17.10
reasonix serve --addr 0.0.0.0:8787 --auth none
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8787"]
interval: 30s