docker run -it n8nio/n8n /bin/ash
/data $ apk update && apk upgrade
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
How would I install php in my n8n docker?
Is it wise to do so in the first place, or would it be better to add an image like ‘traefik’ via the docker-composer? (and if so - how? I’m fairly new to the docker).
That does help somewhat.
What I don’t seem to be understanding yet is:
I’ve got all my workflows etc. already build. Now I’d just like to add php - but keep everything as it is.
Will I be overriding anything with the instructions in Running Python with n8n - #6 by chris ?
(it sounds more like taking a new image?)
Yes, docker-compose.
And I’ve “mounted” a folder on my host file system which persists after I switched of docker - that’s working well.
I’m more worried about the workflows that I’ve built - they are stored inside a SQLite, if I understood that correctly? I didn’t want to move to MySQL or PostgreSQL for my first server with n8n (mostly a MVP at the moment).
The link that you’ve shared (Running Python with n8n - #2 by dali) sounds like I’d be adding sth. to a docker file and I’d be re-creating my n8n ‘instance’ from the docker file + PHP. I assumed, I’d loose my workflows which are currently in SQLite?
Not sure about within the compose file but you could just make your own dockerfile and pull the n8n image and install your extras then use that as your image for compose.
That link above has a comment from Jan on it showing how you can do it.