Open adhishthite opened 3 days ago
How do you start the docker container ? 👀 Any logs there?
@nsarrazin :
docker build -t chatui-build-dev .
docker run -p 3000:3000 chatui-build-dev
In the Dockerfile, I have added this line:
COPY --chown=1000 .env.local /app/.env.local
Also, I do not see any logs with issues.
{"log.level":"info","@timestamp":"2024-06-25T13:31:33.605Z","log.logger":"elastic-apm-node","ecs.version":"8.10.0","agentVersion":"4.5.3","env":{"pid":22,"proctitle":"node","os":"linux 6.6.26-linuxkit","arch":"arm64","host":"c0329fabc523","timezone":"UTC+00","runtime":"Node.js v20.15.0"},"config":{"environment":{"source":"start","value":"development"},"logLevel":{"source":"default","value":"info","commonName":"log_level"},"serverUrl":{"source":"start","value":"https://host.apm.asia-south1.gcp.elastic-cloud.com/","commonName":"server_url"},"secretToken":{"source":"start","value":"[REDACTED]","commonName":"secret_token"},"serviceName":{"source":"start","value":"development","commonName":"service_name"},"serviceVersion":{"source":"default","value":"0.0.1","commonName":"service_version"}},"activationMethod":"import","message":"Elastic APM Node.js Agent v4.5.3"}
Connected to Elasticsearch successfully!
Listening on 0.0.0.0:3000
I have added Elasticsearch client on top of this for APM, but I do not see any issues there. It also works locally without issues.
Please help @nsarrazin
Context
I have made some custom changes in the repository, and whenever I do
npm run dev
, chat-ui works completely fine.However, when I use Docker to build this, chat-ui builds successfully, but I get the following when I visit the
localhost:3000
:Here are my environment variables:
Can you please help me with this?
@nsarrazin