mirror of
https://github.com/henrygd/beszel.git
synced 2026-05-30 05:11:49 +02:00
33 lines
982 B
YAML
33 lines
982 B
YAML
services:
|
|
beszel:
|
|
image: 'henrygd/beszel'
|
|
container_name: 'beszel'
|
|
restart: unless-stopped
|
|
ports:
|
|
- '8090:8090'
|
|
volumes:
|
|
- ./beszel_data:/beszel_data
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
healthcheck:
|
|
test: ["CMD", "/beszel", "health", "--url", "http://127.0.0.1:8090"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
beszel-agent:
|
|
image: 'henrygd/beszel-agent' #Add -nvidia for nvidia gpus
|
|
container_name: 'beszel-agent'
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
# runtime: nvidia # when using beszel-agent-nvidia
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
environment:
|
|
PORT: 45876
|
|
KEY: '...'
|
|
# FILESYSTEM: /dev/sda1 # set to the correct filesystem for disk I/O stats
|
|
# NVIDIA_VISIBLE_DEVICES: all # when using beszel-agent-nvidia
|
|
# NVIDIA_DRIVER_CAPABILITIES: utility # when using beszel-agent-nvidia
|