SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
Create docker image and tag
“himanshu”d9b0c1da1c3e
diff --git a/deploy/docker/docker-compose.yaml b/deploy/docker/docker-compose.yamlindex 22906b0406..0b257d7fa8 100644--- a/deploy/docker/docker-compose.yaml+++ b/deploy/docker/docker-compose.yaml@@ -169,7 +169,7 @@ services:frontend:- image: signoz/frontend:0.1.7+ image: 7296823551/signoz:latestcontainer_name: frontenddepends_on:diff --git a/frontend/Dockerfile b/frontend/Dockerfileindex 2f9361c633..5bb46ad870 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -1,15 +1,31 @@-FROM node:12.20.1-alpine3.9+# stage1 as builder+FROM node:14-alpine as builder+WORKDIR /frontend-ADD ./ ./frontend+# copy the package.json to install dependencies+COPY package.json ./-WORKDIR /frontend+# Install the dependencies and make the folder+RUN yarn install++COPY . .++# Build the project and copy the files+RUN yarn build++FROM nginx:1.15-alpine++#!/bin/sh++COPY conf/default.conf /etc/nginx/conf.d/default.conf-RUN yarn && yarn build-RUN yarn global add serve+## Remove default nginx index page+RUN rm -rf /usr/share/nginx/html/*-ARG PORT=3000+# Copy from the stahg 1+COPY --from=builder /frontend/build /usr/share/nginx/html-EXPOSE $PORT+EXPOSE 3000-CMD ["serve", "-s","build"]\ No newline at end of file+ENTRYPOINT ["nginx", "-g", "daemon off;"]\ No newline at end of filediff --git a/frontend/README.md b/frontend/README.mdindex 02aac3f6ea..7d49534da5 100644--- a/frontend/README.md+++ b/frontend/README.md@@ -1,3 +1,27 @@++ # Docker+ **Building image**++```docker-compose up``+/ This will also run++or+```docker build . -t tagname```++++**Tag to remote url- Introduce versinoing later on**++```+docker tag signoz/frontend:latest 7296823551/signoz:latest+```++ **Running locally**++```+docker-compose up+```+# Getting Started with Create React AppThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).diff --git a/frontend/docker-compose.yml b/frontend/docker-compose.ymlindex b102e15577..4e9043fb08 100644--- a/frontend/docker-compose.yml+++ b/frontend/docker-compose.yml@@ -2,5 +2,6 @@ version: "3.9"services:web:build: .+ image: signoz/frontend:latestports:- "3000:3000"\ No newline at end of filediff --git a/frontend/src/constants/env.ts b/frontend/src/constants/env.tsindex c350e6d922..eb3d981d23 100644--- a/frontend/src/constants/env.ts+++ b/frontend/src/constants/env.ts@@ -1,3 +1,4 @@export const ENVIRONMENT = {- baseURL: "http://104.211.113.204:8080",+ baseURL: "/api",+ // baseURL: "http://104.211.113.204:8080",};