35 lines
1006 B
YAML
35 lines
1006 B
YAML
services:
|
|
memory-viewer:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: memory-viewer
|
|
ports:
|
|
- "8901:8901"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=8901
|
|
- WORKSPACE_DIR=/app/workspace
|
|
- STATIC_DIR=/app/dist
|
|
volumes:
|
|
# Mount your OpenClaw workspace directory here
|
|
# Update the path below to match your actual workspace location
|
|
- ~/.openclaw/workspace:/app/workspace:ro
|
|
# Windows example:
|
|
# - C:/Users/YourName/.openclaw/workspace:/app/workspace:ro
|
|
# Other Linux/macOS paths:
|
|
# - /path/to/your/workspace:/app/workspace:ro
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:8901/api/info', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- memory-viewer-network
|
|
|
|
networks:
|
|
memory-viewer-network:
|
|
driver: bridge
|