fix: Docker HEALTHCHECK does not work if PORT is not explicity defined in env

closes #7547
This commit is contained in:
Tom Moor
2024-09-05 18:46:34 -04:00
parent 967594686e
commit 363c416873
+1 -1
View File
@@ -41,7 +41,7 @@ VOLUME /var/lib/outline/data
USER nodejs
HEALTHCHECK CMD wget -qO- http://localhost:${PORT}/_health | grep -q "OK" || exit 1
HEALTHCHECK --interval=1m CMD wget -qO- "http://localhost:${PORT:-3000}/_health" | grep -q "OK" || exit 1
EXPOSE 3000
CMD ["yarn", "start"]