24 lines
602 B
YAML
24 lines
602 B
YAML
services:
|
|
unraid-monitor:
|
|
build: .
|
|
container_name: unraid-monitor
|
|
restart: unless-stopped
|
|
ports:
|
|
- "10000:10000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- JWT_SECRET=${JWT_SECRET:-change-this-to-a-secure-random-string}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- unraid-monitor
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:4000/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
networks:
|
|
unraid-monitor:
|
|
driver: bridge |