I don’t know much about any of the mentioned variables.The obvious differences are, that I defined a Postgres db "tornote" in its environmental variable.
In your case, the Tornote DATABASE_URL shows a "tornote' database, but it seems undefined in Postgres. Also I see you used a EV "PRODUCTION" ... I'm not sure what that is/does.
I think my short lived lucky streak with Docker ran out. I’m struggling with yourls