Docker container for running nodejs app from git repository.
100K+
Docker container for running nodejs applications. The bootstrap contains of these steps:
yarn installnpm startdocker run -e "GIT_URL=https://github.com/heroku/node-js-sample" -e "PORT=8080" jakubknejzlik/docker-git-node-app
hello-world:
image: jakubknejzlik/docker-git-node-app
container_name: hello-world
expose:
- 8080
environment:
- GIT_URL=https://github.com/heroku/node-js-sample
- PORT=8080
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
hello-world:
image: jakubknejzlik/docker-git-node-app
container_name: hello-world
expose:
- 3001
environment:
- GIT_URL=https://github.com/heroku/node-js-sample
- PORT=3001
- VIRTUAL_HOST=hello.example.com
NODE_VERSION - use specific version for your container (installed via n, default: stable)NPM_SCRIPT - script name used for starting your service (default: start)GIT_URL - repository to pull your source code from (example: https://github.com/heroku/node-js-sample)PORT - port for running your service (default: 30000)YARN_INSTALL - use yarn to install modules (default: 0)Content type
Image
Digest
Size
255.5 MB
Last updated
over 8 years ago
docker pull jakubknejzlik/docker-git-node-app