Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # build the container image
- cd "$(dirname "$0")"
- docker build -t hsin1128/nodeserver .
- # docker-compose up -d
- docker push hsin1128/nodeserver
- docker rm -f mongodb
- docker run -d -p 27017:27017 --name mongodb --network nodeapp mongo
- docker rm -f nodecontainer
- docker build -t nodecontainer .
- docker push justinla/nodecontainer
- docker pull justinla/nodecontainer
- docker run -d --network nodeapp --name nodecontainer -p 5000:5000 -e NODE_ADDR=172.19.03:5000 nodecontainer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement