mirror of
https://github.com/henrygd/beszel.git
synced 2026-05-30 05:11:49 +02:00
feat(docker): add healthcheck to hub docker-compose example (#2001)
This commit is contained in:
@@ -7,3 +7,9 @@ services:
|
|||||||
- '8090:8090'
|
- '8090:8090'
|
||||||
volumes:
|
volumes:
|
||||||
- ./beszel_data:/beszel_data
|
- ./beszel_data:/beszel_data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/beszel", "health", "--url", "http://127.0.0.1:8090"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 10s
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ services:
|
|||||||
- ./beszel_data:/beszel_data
|
- ./beszel_data:/beszel_data
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'host.docker.internal:host-gateway'
|
- '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:
|
beszel-agent:
|
||||||
image: 'henrygd/beszel-agent' #Add -nvidia for nvidia gpus
|
image: 'henrygd/beszel-agent' #Add -nvidia for nvidia gpus
|
||||||
|
|||||||
Reference in New Issue
Block a user