feat: with health checks and always restart

This commit is contained in:
kjuulh-parts 2023-04-07 11:26:24 +00:00
parent 502e4294f2
commit 795e6a9a7f

View File

@ -2,6 +2,13 @@ version: '3'
services: services:
blog: blog:
image: kasperhermansen/kasperhermansen-blog:1680866633 image: kasperhermansen/kasperhermansen-blog:1680866633
restart: always
ports: ports:
- 9080:80 - 9080:80
- 9443:443 - 9443:443
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 1m30s
timeout: 30s
retries: 3
start_period: 40s