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!

fixed clickhouse default host & added migrations to docker

Blue Mousefbd83a339a01
diff --git a/Dockerfile b/Dockerfile
index 0a6217666..cc8adfa6e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,7 @@ RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime
WORKDIR /app
COPY --from=build /build/package*.json ./
COPY --from=build /build/dist/ ./dist/
+COPY --from=build /build/migrations ./migrations
COPY --from=build /build/node_modules/ ./node_modules/
CMD [ "npm", "run", "start:prod" ]
EXPOSE 5005
diff --git a/Dockerfile.prod b/Dockerfile.prod
index 4de362bf0..75627af3e 100644
--- a/Dockerfile.prod
+++ b/Dockerfile.prod
@@ -52,6 +52,7 @@ RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime
WORKDIR /app
COPY --from=build /build/package*.json ./
COPY --from=build /build/dist/ ./dist/
+COPY --from=build /build/migrations ./migrations
COPY --from=build /build/node_modules/ ./node_modules/
CMD [ "npm", "run", "start:prod" ]
EXPOSE 5005
diff --git a/docker-compose.yml b/docker-compose.yml
index db3c4189f..09ddf0c27 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -23,7 +23,7 @@ services:
- JWT_ACCESS_TOKEN_SECRET=jwt-access-token-secret
- JWT_REFRESH_TOKEN_SECRET=jwt-refresh-token-secret
- REDIS_HOST=redis
- - CLICKHOUSE_HOST=http://clickhouse
+ - CLICKHOUSE_HOST=http://localhost
- API_ORIGINS=
- PASSWORD=12345678