Architecture: split backend and frontend - 2 dockers #1299
shuther
started this conversation in
Help Wanted
Replies: 2 comments 3 replies
-
Have you seen the second Dockerfile at the root of the project? Dockerfile.multi note that the “client” is just static code. It runs nothing and the server needs access to it to serve the static files. This is why you would need something like NGINX to configure it separately, which the dockerfile I mentioned does |
Beta Was this translation helpful? Give feedback.
3 replies
-
@shuther did you solve that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to split the API and the front end, and get them running under 2 different dockers because I need to add a middleware.
I found an example for Heroku as well as the one in the dev folder but I had no luck:
For the API, I created this Dockerfile:
Is it the correct cmd ?
I removed the PORT variable in .env
For the client I have this one:
In the log I have this error:
Any help would be appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions