As you see above I now added the container to the same compose-stack as n8n.
I currently try “my-converter:3001” in the API call. Tested “localhost:3001” as well, same behavior, just takes a long time without a result.
I can telnet to port 3001 on IP and localhost.
Upgraded to n8n:0.214.2, btw.
Maybe my Dockerfile is wrong somehow? Not very likely, but you never know. I just googled some bits around dockering a nodejs app:
# Dockerfile, for a small nodejs app
FROM node:18-bullseye-slim
#FROM node:14.18.0-bullseye-slim
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init
ENV NODE_ENV production
COPY package.json /tmp/package.json
#COPY package-lock.json /tmp/package-lock.json
RUN cd /tmp && npm install
#RUN npm ci --only=production
# Copy dependencies libraries
RUN mkdir /app && cp -a /tmp/node_modules /app/
COPY . /app
WORKDIR /app
# maybe not needed at all
RUN addgroup app && adduser node app
RUN mkdir node_modules/.cache
RUN chown node:app node_modules/.cache
USER node
EXPOSE 3001
CMD [ "dumb-init", "node", "index.js" ]