Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

healthcheck

Alper Alkand083f3bddf47
diff --git a/Dockerfile b/Dockerfile
index 8c0d847f3..8dd04d165 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,4 +30,4 @@ COPY --from=build /build/dist/ ./dist/
COPY --from=build /build/node_modules/ ./node_modules/
CMD [ "npm", "run", "start:prod" ]
EXPOSE 80
-HEALTHCHECK CMD curl -f http://localhost/ping || exit 1
\ No newline at end of file
+HEALTHCHECK CMD wget -nv -t1 --spider 'http://localhost/ping' || exit 1
\ No newline at end of file
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 63506c2dd..203ea8142 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -10,6 +10,8 @@ services:
redis:
image: redis:alpine
restart: always
+ environment:
+ - REDIS_PASSWORD=password
volumes:
- '/opt/redis-volume:/data'
mariadb: