mirror of
https://github.com/henrygd/beszel.git
synced 2026-05-30 05:11:49 +02:00
update docker-compose.yml examples
This commit is contained in:
@@ -1,18 +1,24 @@
|
|||||||
|
# Specialized images available for Nvidia / Intel GPUs
|
||||||
|
#
|
||||||
|
# Docs: https://beszel.dev/guide/agent-installation
|
||||||
|
# Env vars: https://beszel.dev/guide/environment-variables
|
||||||
|
|
||||||
services:
|
services:
|
||||||
beszel-agent:
|
beszel-agent:
|
||||||
image: 'henrygd/beszel-agent' #Or henrygd/beszel-agent-nvidia
|
image: henrygd/beszel-agent
|
||||||
container_name: 'beszel-agent'
|
container_name: beszel-agent
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
# Only when using henrygd/beszel-agent-nvidia
|
|
||||||
# runtime: nvidia
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./beszel_agent_data:/var/lib/beszel-agent
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
# monitor other disks / partitions by mounting a folder in /extra-filesystems
|
# monitor other disks / partitions by mounting a folder in /extra-filesystems
|
||||||
# - /mnt/disk/.beszel:/extra-filesystems/sda1:ro
|
# - /mnt/disk1/.beszel:/extra-filesystems/disk1:ro
|
||||||
environment:
|
environment:
|
||||||
PORT: 45876
|
LISTEN: 45876
|
||||||
KEY: 'ssh-ed25519 YOUR_PUBLIC_KEY'
|
KEY: "<public key>"
|
||||||
# Only when using henrygd/beszel-agent-nvidia
|
HUB_URL: "<hub url>"
|
||||||
# NVIDIA_VISIBLE_DEVICES: all
|
TOKEN: "<token>"
|
||||||
# NVIDIA_DRIVER_CAPABILITIES: compute,video,utility
|
# healthcheck:
|
||||||
|
# test: ['CMD', '/agent', 'health']
|
||||||
|
# interval: 120s
|
||||||
|
|||||||
@@ -1,15 +1,17 @@
|
|||||||
|
# Docs: https://beszel.dev/guide/hub-installation
|
||||||
|
# Env vars: https://beszel.dev/guide/environment-variables
|
||||||
|
|
||||||
services:
|
services:
|
||||||
beszel:
|
beszel:
|
||||||
image: 'henrygd/beszel'
|
image: "henrygd/beszel"
|
||||||
container_name: 'beszel'
|
container_name: "beszel"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- '8090:8090'
|
- "8090:8090"
|
||||||
volumes:
|
volumes:
|
||||||
- ./beszel_data:/beszel_data
|
- ./beszel_data:/beszel_data
|
||||||
healthcheck:
|
# healthcheck:
|
||||||
test: ["CMD", "/beszel", "health", "--url", "http://127.0.0.1:8090"]
|
# test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
|
||||||
interval: 30s
|
# interval: 120s
|
||||||
timeout: 5s
|
# start_period: 10s
|
||||||
retries: 3
|
# timeout: 5s
|
||||||
start_period: 10s
|
|
||||||
|
|||||||
@@ -1,32 +1,38 @@
|
|||||||
|
# Docs: https://beszel.dev/guide/getting-started
|
||||||
|
# Env vars: https://beszel.dev/guide/environment-variables
|
||||||
|
|
||||||
services:
|
services:
|
||||||
beszel:
|
beszel:
|
||||||
image: 'henrygd/beszel'
|
image: henrygd/beszel:latest
|
||||||
container_name: 'beszel'
|
container_name: beszel
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
APP_URL: http://localhost:8090
|
||||||
ports:
|
ports:
|
||||||
- '8090:8090'
|
- 8090:8090
|
||||||
volumes:
|
volumes:
|
||||||
- ./beszel_data:/beszel_data
|
- ./beszel_data:/beszel_data
|
||||||
extra_hosts:
|
- ./beszel_socket:/beszel_socket
|
||||||
- 'host.docker.internal:host-gateway'
|
# healthcheck:
|
||||||
healthcheck:
|
# test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
|
||||||
test: ["CMD", "/beszel", "health", "--url", "http://127.0.0.1:8090"]
|
# interval: 120s
|
||||||
interval: 30s
|
# start_period: 10s
|
||||||
timeout: 5s
|
# timeout: 5s
|
||||||
retries: 3
|
|
||||||
start_period: 10s
|
|
||||||
|
|
||||||
beszel-agent:
|
beszel-agent:
|
||||||
image: 'henrygd/beszel-agent' #Add -nvidia for nvidia gpus
|
image: henrygd/beszel-agent:latest
|
||||||
container_name: 'beszel-agent'
|
container_name: beszel-agent
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
# runtime: nvidia # when using beszel-agent-nvidia
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./beszel_agent_data:/var/lib/beszel-agent
|
||||||
|
- ./beszel_socket:/beszel_socket
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
PORT: 45876
|
LISTEN: /beszel_socket/beszel.sock
|
||||||
KEY: '...'
|
HUB_URL: http://localhost:8090
|
||||||
# FILESYSTEM: /dev/sda1 # set to the correct filesystem for disk I/O stats
|
TOKEN: <token>
|
||||||
# NVIDIA_VISIBLE_DEVICES: all # when using beszel-agent-nvidia
|
KEY: "<key>"
|
||||||
# NVIDIA_DRIVER_CAPABILITIES: utility # when using beszel-agent-nvidia
|
# healthcheck:
|
||||||
|
# test: ['CMD', '/agent', 'health']
|
||||||
|
# interval: 120s
|
||||||
|
|||||||
Reference in New Issue
Block a user