Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion templates/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ services:
lemmy:
image: {{ lemmy_docker_image }}
hostname: lemmy
restart: always
restart: on-failure
healthcheck: #Wget the api root every minute and restart if timeout exceeds 5 seconds
test: ["CMD-SHELL", "wget -S -T 5 --spider -q http://localhost:8536 || exit 1"] #NOTE the wget timeout is seperate from the heathcheck timeout
interval: 1m
timeout: 5s #NOTE the heathcheck timeout is seperate from the wget timeout
retries: 3
logging: *default-logging
environment:
- RUST_LOG="warn"
Expand Down