Beszel
Last updated
version: '3.8'
services:
app:
image: ghcr.io/henrygd/beszel/beszel:0.18.7@sha256:5b583633750cae65a9c1ab399c4c0eed229666ad74e103801724e3bc465338b8
restart: unless-stopped
ports:
- ${PORT:-8090}:8090
volumes:
- data:/beszel_data
- ./beszel_socket:/beszel_socket
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
#- BESZEL_HUB_DISABLE_PASSWORD_AUTH=true
- BESZEL_HUB_USER_CREATION=true
- ALL_URL=${CFSUBDOMAIN}${CFDOMAIN}
healthcheck:
test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
start_period: 30s
interval: 120s
labels:
- autoheal=true
- dfgeneric.enable=${CFTUNNEL:-true}
- dfgeneric.0.hostname=${CFSUBDOMAIN}${CFDOMAIN}
- dfgeneric.0.service=http://${HOSTNAME:-localhost}:${PORT:-8090}
- dfgeneric.0.access.policy=${CFPOLICY:-default_tld}
- dfgeneric.0.zonename=${CFDOMAIN}
- dfgeneric.0.path=${CFURLPATH:-}
volumes:
data:
services:
app:
image: ghcr.io/arunoruto/beszel-agent:0.18.7@sha256:ae42b94eaa8750f9e5662d32325ec33db80f8d827f77322a5eec66e420154f29
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- utility
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
LOG_LEVEL: info
PORT: ${PORT:-45876}
GPU: true
KEY: $BESZELKEY
healthcheck:
test: ['CMD', '/agent', 'health'] # Run the health command
start_period: 5s # Check 5 seconds after the container starts
interval: 120s # Then check every 120 seconds after that
labels:
- autoheal=true