Best Practice to start a new instance on portainer? (Docker Compose)
Hey Guys,
I installed TwentyCRM before and after a Server-Switch, caused by the Provider, I have to start at zero.
So I tried to install Twenty via Docker Compose as a Stack in Portainer, I provided the environment variables, but there were some errors and I did something wrong my end, but I tried this so much the last days, I just want to give up 😄
So, how would the ideal docker-compose.yml and the ideal .env-files look like?
I want to use Twenty on my own subdomain (https) and on server-port 2000.
I don't use S3-Storage, it should all be saved inside "/srv/docker/twenty/" on my server.
I don't use Gmail, MS365 or SMTP4DEV - I just have SMTP (for Mails) or the Apple Calendar (for Calendar, obviously)
I'm fine with installing a complete new instance and start all over again.
But I just need some help now, setting everything up as is should be.
Some Questions:
1. Which environment variables are absolutely neccessary for twenty to run?
2. Which environment variables are not needed to run twenty?
3. What would be the best practice to get twenty running as a stack inside portainer?
4. What should the files look like, to get this working?
Thank you in Advance!
Greetings from Germany!
4 Replies
Hi @Der Feind, just realized we did not answer. Apologies about this... Did you finally manage to properly setup?
Hi! No worries! Thank you for your answer.
No, actually I didn‘t. I‘ve weites for an answer 😀
For the env variables, you can refer to
./packages/twenty-server/.env.example
and ./packages/twenty-front/.env.example
. Most of variables are commented with a default value setup in the code. These should not be mandatory. You should only need to setup the ones that are not commented
About portainer, never used it so I cannot really give an advice. If you search existing threads, maybe someone from the community shared a setup!I don't know linux (using wsl) at all. I'm trying to setup twenty to run locally. I'm in the point of the documentation regarding env variables and I'm not sure what to do. I can't seem to find those .env.example files. Can someone give me a step by step on how to get these setup?