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: services:
bitebuds: bitebuds:
image: docker.io/kasperhermansen/bitebuds:1680553012 image: docker.io/kasperhermansen/bitebuds:1680553012
restart: always
environment: environment:
- RUST_LOG=debug - RUST_LOG=debug
ports: ports:
- 10080:3000 - 10080:3000
volumes: volumes:
- ./.ssh:/root/.ssh - ./.ssh:/root/.ssh
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 1m30s
timeout: 30s
retries: 3
start_period: 40s