Reference variables between services

MMedim8/23/2022
Just wondering... is it possible to reference a variable on my postgresql service (DB_HOST, DB_PORT...) on my other web service variables?
like: ${{ DB_HOST }}
UUUnknown User8/23/2022
Message Not Public
Sign In & Join Server To View
Eeirk8/23/2022
other variables arent
MMedim8/23/2022
Well, it didnt.
Eeirk8/23/2022
did u make the databases after you already deployed ur other web service
MMedim8/23/2022
had to configure it myself, it didnt detect my .env file on my project either
MMedim8/23/2022
no
MMedim8/23/2022
atleast this was simple to do, just copy/pasted it into the raw editor
MMedim8/23/2022
but the question remains, can I reference my service host variable on my web service variables?
Eeirk8/23/2022
what db is this
MMedim8/23/2022
postgres
Eeirk8/23/2022
railway doesn't have these env vars
Eeirk8/23/2022
where did u get this Postgres from
Eeirk8/23/2022
did u deploy it urself
MMedim8/23/2022
no, it was just an example
MMedim8/23/2022
if i were to reference it in another service
Eeirk8/23/2022
then this answers your question
MMedim8/23/2022
Ok, thanks.
For anyone finding this thread :
You can use database variables on other services, but not other vars.
Eeirk8/23/2022
.