Hi everyone,
My first post here, so if I'm doing anything wrong apologies in advance.
I've been working on an Angular project and have a docker image containing it and its API (django) all one container.
This all works well when I'm running locally. The angular code builds via webpack and looks at the local IP for the API.
e.g.
localhost:8000
but when I deploy to EC2 I get a magically auto assigned IP and need my angular app on boot up to use it.
I would do a CURL or something similar on this URL and put it into a file and then create some kind of service on my app to use this file or a sensible default for my endpoint.
Is this a good way to do it or do people have a better way?
Thanks in advance
MB