menu

accounts-js

Fullstack authentication and accounts-management for Javascript

Channels
Team

Docker/Galaxy

September 4, 2020 at 6:18am (Edited 3 months ago)
Is there a pattern or example of using AccountsJS with a dockerized container? Specifically, I'm trying to deploy to Galaxy, and am getting hung up on port numbers. On my local machine, I can have old Meteor app running on port 3000, and the accountsServer running on port 4000, as per the examples (and all within a single codebase).
But when trying to deploy to a docker container on Galaxy, we only get a single port to work from. Thoughts/advice?

September 6, 2020 at 12:02pm
It depends if you are using the Rest or GraphQL adapter, in any case you should be able to merge the 2 servers so both will listen on the same port :)
  • reply
  • like

September 6, 2020 at 6:04pm
Well, I'm trying to use the Rest adapter, using the JsonRoutes package in my Meteor app. I can get them to listen to the same port, but there seem to be built in routes? There's an /accounts/password/register route that's build in, I think?
  • reply
  • like

September 7, 2020 at 8:03pm
I never used the JsonRoutes package but is it possible for you to open /accounts/* for the accounts-js server?
  • reply
  • like