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!

docker...

Alper Alkane038695ccc10
diff --git a/Dockerfile b/Dockerfile
index 99ef40074..72bf9e8c9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -32,4 +32,4 @@ COPY --from=build /build/dist/ ./dist/
COPY --from=build /build/node_modules/ ./node_modules/
CMD [ "npm", "run", "start:prod" ]
EXPOSE 5005
-HEALTHCHECK CMD wget -nv -t1 --spider 'http://localhost/ping' || exit 1
\ No newline at end of file
+HEALTHCHECK CMD wget -nv -t1 --spider 'http://localhost:5005/ping' || exit 1
\ No newline at end of file
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 78b405573..8c971c124 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -3,6 +3,8 @@ services:
swetrix-api:
image: swetrix/swetrix-api:latest
restart: always
+ ports:
+ - '8080:5005'
environment:
- REDIS_HOST=redis
- MYSQL_HOST=mariadb