docs: add deployment guide and helper scripts
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# Déploiement — OpenClaw Dashboard
|
||||
|
||||
Le dashboard doit tourner dans le conteneur Docker OpenClaw (LXC 145) car il accède
|
||||
directement aux fichiers de sessions `/home/node/.openclaw/agents/`.
|
||||
|
||||
## Étapes
|
||||
|
||||
### 1. Mapper le port sur le LXC host (192.168.1.145)
|
||||
|
||||
Créer ou compléter `~/openclaw/docker-compose.override.yml` sur le LXC :
|
||||
|
||||
```yaml
|
||||
services:
|
||||
openclaw-gateway:
|
||||
ports:
|
||||
- "3850:3850"
|
||||
```
|
||||
|
||||
Puis relancer : `~/openclaw/oc-up.sh`
|
||||
|
||||
### 2. Lancer le dashboard dans le conteneur
|
||||
|
||||
```bash
|
||||
docker exec openclaw-openclaw-gateway-1 bash -c "
|
||||
cd /home/node/.openclaw/workspace/projets/openclaw-dashboard &&
|
||||
npm install --silent &&
|
||||
SESSIONS_DIR=/home/node/.openclaw/agents PORT=3850 node server.js &
|
||||
"
|
||||
```
|
||||
|
||||
### 3. Accès
|
||||
- Local : http://192.168.1.145:3850
|
||||
- Tailscale : http://100.64.255.3:3850
|
||||
|
||||
### 4. Persistance (optionnel)
|
||||
Pour que le dashboard redémarre automatiquement avec OpenClaw, ajouter dans le
|
||||
docker-compose.override.yml un service dédié, ou utiliser le HEARTBEAT.md pour
|
||||
le relancer périodiquement.
|
||||
Reference in New Issue
Block a user