Bump app image and fix healthcheck quoting

Update app image to 0.39.4-2 and switch the healthcheck test to single
quotes to simplify escaping of the embedded Node.js script
This commit is contained in:
Robert Best
2026-04-18 06:11:44 +00:00
committed by Christian Galo
parent 280402daf7
commit 02ad7a1ace
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -1,6 +1,10 @@
services:
app:
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.38.6-2
<<<<<<< HEAD
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.39.4-1
=======
image: git.coopcloud.tech/wiki-cafe/fedwiki-oci-image:0.39.4-2
>>>>>>> b19daf1 (Bump app image and fix healthcheck quoting)
command: /bin/sh entrypoint.sh
volumes:
- "data:/home/node/.wiki"
@@ -46,7 +50,7 @@ services:
- "backupbot.backup=true"
- "backupbot.backup.path=/home/node/.wiki"
healthcheck:
test: "node -e 'var http = require(\"http\"); var options = { host : \"localhost\", port : \"3000\", timeout : 2000, path : \"/view/welcome-visitors\", headers: { \"Host\": \"${DOMAIN}\" } }; var request = http.request(options, (res) => { console.log(`STATUS: $${res.statusCode}`); if (res.statusCode == 200) { process.exit(0); } else { process.exit(1); } }); request.on(\"error\", function(err) { console.log('ERROR'); process.exit(1); }); request.end();'"
test: 'node -e ''var http = require("http"); var options = { host : "localhost", port : "3000", timeout : 2000, path : "/view/welcome-visitors", headers: { "Host": "${DOMAIN}" } }; var request = http.request(options, (res) => { console.log(`STATUS: $${res.statusCode}`); if (res.statusCode == 200) { process.exit(0); } else { process.exit(1); } }); request.on("error", function(err) { console.log(''ERROR''); process.exit(1); }); request.end();'''
interval: 10s
timeout: 2s
retries: 2
+1 -1
View File
@@ -1,6 +1,6 @@
{
"farm": true,
"cookieSecret": "{{ secret "cookie_secret" }}",
"secure_cookie": true,
"security_useHttps": true,
"security_type": "friends"
}