feat: added health checks and restart always

This commit is contained in:
kjuulh-parts 2023-04-07 01:03:18 +00:00
parent 6ac3301800
commit 3083b26a13

View File

@ -2,9 +2,17 @@ version: '3'
services:
bitebuds:
image: docker.io/kasperhermansen/bitebuds:1680553012
restart: always
environment:
- RUST_LOG=debug
ports:
- 10080:3000
volumes:
- ./.ssh:/root/.ssh
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 1m30s
timeout: 30s
retries: 3
start_period: 40s