Docker MERN Starter Blog
This repo is forked from Hashnode/mern-starter, it can build with docker in rancher.
How To Build
Add one service named db and select
mongo:3 image, then add another service named mern and select
Port Map & Service Link
Create a service link to db service, then add a port map like this...
Mern service needs to link mongodb or it will crash, so you can change the mongo url and web server port by setting environment variables.
After you finish these steps, it should perfectly running on your server.