Trigger v3 #2439
Replies: 10 comments 9 replies
-
I manage to get it working using this docker_compose
|
Beta Was this translation helpful? Give feedback.
-
Does this setup both the worker & webapp on the same server? |
Beta Was this translation helpful? Give feedback.
-
Would love to see this instead of the current V2 templates. |
Beta Was this translation helpful? Give feedback.
-
I'm using this env generator and this docker-compose file and it's still failing: https://gist.github.com/galer7/777e8399713fa7f6b5e7cef9f53dca52 getting |
Beta Was this translation helpful? Give feedback.
-
@fdarian Hey! I just made a few changes to your docker-compose since the official v3 tag has been released.
|
Beta Was this translation helpful? Give feedback.
-
I just wanted to drop in and give some context that some users might find helpful on their journey of self-hosting trigger.dev v3. I've got over 10,000 tasks ran on my instance that I've had live for a couple of months now and I've been supporting users over on the trigger.dev discord. Some things I've seen crop up multiple times are the following:
This makes it a little harder to self-host than just running a template, you also need to consider where your docker images are going to live. The hosted platform abstracts this away from you by uploading your tasks into their private docker repo, when you self-host trigger, you need to provide this docker repository. The guide provided by trigger suggests you use docker hub, or you build your tasks docker image on the machine that will be running your tasks so that the image is available. This is reasonable, but if you want to ensure your tasks are private or connect to an authenticated docker repository, then you'll likely have to do some additional (up to an including extending the Some things I don't see talked about but will probably impact your experience self-hosting trigger on Coolify.
I would instead suggest that you set the docker network for the docker-provider to the network of your service. The following env parameter should be added to your docker-provider env.
This is all for now, if I remember anything else I'll update this post. The docker-compose I use is as follows:
You will need to set the following env's once the stack is setup:
To deploy code to your instance you will need to run the following command where you have access to your code, and permission/setup for your docker repository:
This includes If you're running this in a CI/CD pipeline then you will need to ensure the following env parameters are set: I have additional configurations which allow me to use authenticated AWS Container Repository, if anybody wants that, I'll make it available.
|
Beta Was this translation helpful? Give feedback.
-
Hey @andrasbacsai , would love to know if coolify can handle the new trigger v3 self hosted version
https://trigger.dev/docs/v3/open-source-self-hosting
seems like there's alot of things to configure, would be awesome if we can have it run with one click on coolify, thank you
Beta Was this translation helpful? Give feedback.
All reactions