Hi guys, I am building own docker images to deploy that on my eks, the commands include same things as of Run stack in local, when i run it in eks as a docker image but its running lots of sockets and i am not able to connect to application even from localhost, below i am sharing few details, any help will be highly appreciated
Dockerfile
FROM node:20-slim
WORKDIR /usr/src/medplum
copy . .
RUN npm install && \
npm run build:fast
EXPOSE 3000
CMD ["sh", "-c", "cd packages/server && npm start"]
build command
docker build --platform linux/amd64 -t medplum-server-backend .
lsof output from pod
grep 3000
node 20 root 18u IPv6 53048 0t0 TCP *:3000 (LISTEN)
node 20 root 20u IPv6 68126 0t0 TCP localhost:3000->localhost:54654 (ESTABLISHED)
and lot more like this
and pod logs
@medplum/server@3.2.13 start
node --require ./dist/otel/instrumentation.js dist/index.js
{"level":"INFO","timestamp":"2024-09-23T12:38:25.817Z","msg":"Starting Medplum Server...","configName":"file:medplum.config.json"}
{"level":"INFO","timestamp":"2024-09-23T12:38:35.287Z","msg":"Already seeded"}
{"level":"INFO","timestamp":"2024-09-23T12:38:35.386Z","msg":"Loaded 1 key(s) from the database"}
{"level":"INFO","timestamp":"2024-09-23T12:38:35.407Z","msg":"Server started","port":3000}
and i am getting 504 getway timeout when i run loclhost:3000/healcheck inside the pod