Deploying Faktory server in Railway
Hi there! I have a service that deploys the Docker image for Faktory (https://hub.docker.com/r/contribsys/faktory). Faktory is a background job system that listens on port 7419 for job commands and 7420 for the web UI (for monitoring jobs; if you're familiar with Sidekiq, it's practically identical).
At the moment I have the service configured to listen over TCP on port 7419 so that I can send jobs to it. That's been working great, but I don't appear to be able to also listen on 7420 over HTTP to access the Web UI and monitor jobs. This does appear to be possible on Render for example: https://github.com/contribsys/faktory-render/blob/main/readme.md
I've done a bit of searching on this here Discord for some information around this and my understanding on this is that Railway does not currently support http and tcp at the same time (though that may be on the roadmap but is not coming soon, per se). Just wondering if I have any option here or if anyone has experience deploying Faktory on Railway and can provide any tips? I'm a big fan of Railway and would love to continue using it but may be pulled over to Render if there is no option sadly.
Thanks for anything you can provide!
GitHub
faktory-render/readme.md at main Β· contribsys/faktory-render
How to deploy Faktory to Render.com. Contribute to contribsys/faktory-render development by creating an account on GitHub.
Solution:Jump to solution
@brad - i got a bit side tracked, but here you are, a ready to deploy faktory template, with a web ui! - https://railway.app/template/Hh00T5
let me know if i messed anything up, or if its missing any needed/nice to have service variables!...
18 Replies
Project ID:
fa1e6900-1875-45ce-a875-d750794021df
fa1e6900-1875-45ce-a875-d750794021df
you could reverse proxy the http port out through another service so it could be accessed externally
ah, clever! I can give that a shot
this should get you 95% of the way there https://railway.app/template/7uDSyj
make sure to deploy this into your pre-existing project, and use the private network as shown in the overview
that looks great, thanks so much!
no problem, and this looks like it could make a good template, what would a connection url for Faktory look like?
typically e.g.
tcp://faktory.example.com:7419
and then what is used for auth?
FAKTORY_PASSWORD
?
or is that just for the web uiafaik
FAKTORY_PASSWORD
is for faktory server authdoes the web ui have auth too?
yes: https://github.com/contribsys/faktory/wiki/Security#web-ui
If Faktory is configured to use a password, the Web UI also enables HTTP Basic Auth with that same password. The username can be any value.
awsome, thank you
let me know if youve gotten further than me
![No description](https://cdn.answeroverflow.com/1195137828531748934/image.png)
![No description](https://cdn.answeroverflow.com/1195137828812759220/image.png)
oh! no I believe you have gotten further than me π