added a different health check and changed container name
This commit is contained in:
@@ -1,11 +1,17 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/unpoller/unpoller:${UNPOLLER_VERSION:-latest}
|
image: ghcr.io/unpoller/unpoller:${UNPOLLER_VERSION:-latest}
|
||||||
container_name: unifi-poller-app
|
container_name: monitor-unifi-poller
|
||||||
volumes:
|
volumes:
|
||||||
- ${UNPOLLER_UP_CONF_PATH}:/etc/unpoller/up.conf
|
- ${UNPOLLER_UP_CONF_PATH}:/etc/unpoller/up.conf
|
||||||
networks:
|
networks:
|
||||||
- monitor_network
|
- monitor_network
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "/usr/bin/unpoller", "--health"]
|
||||||
|
interval: 15s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user