pash2048 / docker-nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-nodejs

docker-nodejs use Redis and nodejs Redis client to show how to use docker network

build & run

first, you need to create a network interface

docker create network nodejs

then run redis image with your custome network

docker run --name some-redis --rm --network nodejs -v /docker/host/dir:/data redis redis-server --save 60 1 --loglevel warning 

build and run

build image with your costume name and tag(default my app and laetes tag)

docker build -t myhttp .

then run docker image

docker run --rm -p:80:80 --network nodejs --name myhttp myhttp

License

MIT

About


Languages

Language:JavaScript 64.7%Language:Dockerfile 35.3%