forked from narayanacharan/mern_docker_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Docker Commands
9 lines (5 loc) · 1.09 KB
/
Docker Commands
1
2
3
4
5
6
7
8
9
docker run -itd -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password -e PWD=/ -v mongodb-data:/data/db --name mern_library_nginx_mongodb_1 --net library-mern-api mongo
docker run -itd -p 8081:8081 -e ME_CONFIG_MONGODB_ADMINUSERNAME=admin -e ME_CONFIG_MONGODB_ADMINPASSWORD=password -e ME_CONFIG_MONGODB_SERVER=mern_library_nginx_mongodb_1 -e ME_CONFIG_BASICAUTH_USERNAME=admin -e ME_CONFIG_BASICAUTH_PASSWORD=admin123456 -e PWD=/ --name mern_library_nginx_mongo-express_1 --net library-mern-api mongo-express
docker run -itd -p 5000:5000 -e MONGO_URI=mongodb://admin:password@mern_library_nginx_mongodb_1 -e NODE_ENV=development -e PWD=/app -v "$(pwd)":/app -v "$(pwd)"/node_modules:/app/node_modules --net library-mern-api --name library_mern_nginx mern_library_nginx_library-api
docker run -itd -v "$(pwd)":/app -v "$(pwd)"/node_modules:/app/node_modules --net library-mern-api --name library_mern_frontend mern_library_nginx_client
docker run -itd -p 8080:80 --net library-mern-api --name mern_library_nginx_nginx_1 mern_library_nginx_nginx