I am getting back to working with n8n and I really have fun doing so. My problem is I have very limited Docker experience. I managed to get my container running and it is proxied with NGINX to serve via HTTPS.
I am getting to more complex use cases. A lot of my use cases involve XML processing. Back in November 2019 I allready opened this topic: XSLT/XSD processor or command line tool
Now I want to dig deeper into this. I would like to have some more command line tools available inside of the docker container. For example I would like to have
So my question is: how can I put external tools into my docker image. I use this very minimal docker-compose.yml to serve the container and make it work with the nginx reverse proxy:
version: "3" services: n8n: image: n8nio/n8n restart: always ports: - "5678:5678" environment: - N8N_BASIC_AUTH_ACTIVE=false - N8N_HOST=our.domain.tld - N8N_PORT=5678 - N8N_PROTOCOL=https - NODE_ENV=production - WEBHOOK_TUNNEL_URL=https://our.domain.tld/ volumes: - /var/run/docker.sock:/var/run/docker.sock - ./.n8n:/home/node/.n8n
Is it possible to use a docker-compose.yml or something to tell the image to apt-get install some packages? I then could use those via the Execute Command node.
Or is it possible to add npm packages to the image? so I can require them in a funciton node?