Deploying gotify from docker Application failed to respond

Hello guys, i need help deploying gotify docker image in railway. So database is ok, and i get Starting Gotify version 2.4.0@2023-09-17-08:24:00 Started Listening for plain HTTP connection on :80 But the web ui is not working when i visit my domain i get Application failed to respond Can anyone help ?
No description
63 Replies
Percy
Percy3mo ago
Project ID: 50b8a73e-0a0d-4fd4-9bc6-b69295b1d24d
Asmir 🍉
Asmir 🍉3mo ago
50b8a73e-0a0d-4fd4-9bc6-b69295b1d24d
Medim
Medim3mo ago
Can you give this doc section a try? https://docs.railway.app/guides/fixing-common-errors
Railway Docs
Fixing Common Errors | Railway Docs
Documentation for Railway
Asmir 🍉
Asmir 🍉3mo ago
Ty for reply I'll read that but my knowledge in docker/containers is limited. I searched for a template but not found any for gotify.
Brody
Brody3mo ago
hey @Asmir does this template work for you? https://railway.app/template/HcjHbf
Asmir 🍉
Asmir 🍉3mo ago
@Brody Hey M8 ! I'll give it a try thank's ! the postgresql setup seems to be broken some env variables are missing such as PGUSER etc
Brody
Brody3mo ago
it's likely not broken, the database does not come publicly exposed by default, was going to add a note about that. and the variables are missing but that does not matter because you should not use the data tab, it's super buggy, instead use a proper database client like dbgate
Asmir 🍉
Asmir 🍉3mo ago
the fact that it's not publicly exposed makes a difference ?
Brody
Brody3mo ago
not unless you need manual access to the database, gotify connects the the database privately already
Asmir 🍉
Asmir 🍉3mo ago
all right but getting nothing here yet from domain
No description
Brody
Brody3mo ago
railways proxy takes a bit to register the routes for new domains
Asmir 🍉
Asmir 🍉3mo ago
yep i've heard of that i'll wait and come back to you, thanks brody @Brody Perfectly works thank you sir ! 🔥
Brody
Brody3mo ago
no problem!
Asmir 🍉
Asmir 🍉3mo ago
Oh last thing do you know how to install iGotify with it please ? https://github.com/androidseb25/iGotify-Notification-Assistent
GitHub
GitHub - androidseb25/iGotify-Notification-Assistent: Docker contai...
Docker container for sending Gotify notifications to iOS devices (bridge to gotify websocket) - androidseb25/iGotify-Notification-Assistent
Asmir 🍉
Asmir 🍉3mo ago
If you have time would be amazing a template for https://github.com/binwiederhier/ntfy aswell it's a cool alternative project !
GitHub
GitHub - binwiederhier/ntfy: Send push notifications to your phone ...
Send push notifications to your phone or desktop using PUT/POST - binwiederhier/ntfy
Brody
Brody3mo ago
I do have one for ntfy (not public) but that requires cli access to the container to setup authentication and a bunch of other stuff (railway does not allow such access)
Asmir 🍉
Asmir 🍉3mo ago
i already succesfully tried to make ntfy work on desktop but it has weird configuration to make it work with the ios app... thats why i wanted to install gotify instead but it asks two installs... yep thats why... i guess i couldn't make it work because of that restriction
Brody
Brody3mo ago
I'll try my hand at igotify
Asmir 🍉
Asmir 🍉3mo ago
your daboss ty vm tho a last question if i you don't mind is there a way to self host a service such as cloudinary for images/videos at railway ? that can process image resizing/optimization and expose a public url ? i havn't found any relative informations actually
Brody
Brody3mo ago
im not aware of anything off the top of my head, but if you find something id be happy to take a crack at making a template for it
Asmir 🍉
Asmir 🍉3mo ago
ill check that !
Brody
Brody3mo ago
@Asmir give this a try? https://railway.app/template/5-vKTX though you would want to use the + New button to deploy it into the same project as your gotify service
Asmir 🍉
Asmir 🍉3mo ago
i try that what + New button you mean ? Like the + New then template and i select iGotify ?
Brody
Brody3mo ago
correct
Brody
Brody3mo ago
No description
Asmir 🍉
Asmir 🍉3mo ago
got that
No description
Brody
Brody3mo ago
you deployed gotify again
Asmir 🍉
Asmir 🍉3mo ago
thats what template asked for
Brody
Brody3mo ago
nope
Asmir 🍉
Asmir 🍉3mo ago
i remove and retry
Brody
Brody3mo ago
screenshot of the project again please
Asmir 🍉
Asmir 🍉3mo ago
No description
Asmir 🍉
Asmir 🍉3mo ago
i selected template iGotify
No description
Brody
Brody3mo ago
nope, you selected Gotify
Asmir 🍉
Asmir 🍉3mo ago
wut wait
Brody
Brody3mo ago
you are trying to deploy Gotify again
Asmir 🍉
Asmir 🍉3mo ago
No description
Asmir 🍉
Asmir 🍉3mo ago
ur right the search was buggy had to retry ... my bad sorry
Brody
Brody3mo ago
no worries
Asmir 🍉
Asmir 🍉3mo ago
ok building ok desktop works i give it a try with the ios app now Looks fine ! Not perfectly understood how to connect to the notification "room" from the iOs app but the servers works ty m8 ! hope that ntfy will work soon with railway 😄 !
Brody
Brody3mo ago
unless ntfy provides a way to configure auth via environment variables, i cant see it being possible, unless you are okay with ntfy without auth?
Asmir 🍉
Asmir 🍉3mo ago
actually yeah i don't care about auth no sensible data will be exposed
Asmir 🍉
Asmir 🍉3mo ago
the main issue with that is the fact that to make self hosted app work with the iOs app and the config seems to be a tricky configuration i'll try it !
Brody
Brody3mo ago
the template might not even work for you then, ntfy is very limited without cli access, not just auth wise
Asmir 🍉
Asmir 🍉3mo ago
about gotify idk if it's i'm auth to the app but idk if igotify is passing the notifications, i'm authed etc but i don't see any messsages etc... thats weird
Brody
Brody3mo ago
i dont have an iphone so i couldnt test
Asmir 🍉
Asmir 🍉3mo ago
oh sadge
Asmir 🍉
Asmir 🍉3mo ago
No description
Asmir 🍉
Asmir 🍉3mo ago
if i try to connect as admin ios hides the password but there is one
Brody
Brody3mo ago
did you give it the same username and password that is in the Gotify service variables? and try with https:// in both those url fields
Asmir 🍉
Asmir 🍉3mo ago
yes i did, and can't add https:// its prefixed i'll select 443
Brody
Brody3mo ago
its trying to use http
No description
Asmir 🍉
Asmir 🍉3mo ago
yup thats why i selected https now
Brody
Brody3mo ago
same issue?
Asmir 🍉
Asmir 🍉3mo ago
im trying
Asmir 🍉
Asmir 🍉3mo ago
No description
Asmir 🍉
Asmir 🍉3mo ago
ooh wait DAMN YES i just had to remove the app from gotify now works perfectly
Brody
Brody3mo ago
awsome!!
Asmir 🍉
Asmir 🍉3mo ago
you are awesome ! thank you for you support & time 😄 ! ❤️
Brody
Brody3mo ago
happy to help
Asmir 🍉
Asmir 🍉3mo ago
that deserved a coffee 😄 !
Brody
Brody3mo ago
thank you very much