Skip to content
πŸ“¦πŸš’ Docker Node.js development environment
Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Added PULL_REQUEST_TEMPLATE.md Jul 28, 2018
adminer Added adminer and phpmyadmin Jul 23, 2018
beanstalkd-console Added beanstalkd Jul 23, 2018
beanstalkd Added beanstalkd Jul 23, 2018
caddy Fixed caddy build Aug 22, 2019
certbot Added certbot Jul 24, 2018
docs Updated docs, added puppeteer support section Aug 22, 2019
elasticsearch Fixed node image Jul 23, 2018
examples Updated docker commands to respect env vars Jul 29, 2018
logs/nginx .keep -> .gitkeep for consistency Jul 29, 2018
maildev Added maildev and mailhog Jul 23, 2018
mailhog Added maildev and mailhog Jul 23, 2018
mariadb Added MariaDB service Aug 22, 2019
memcached Added memcached Jul 23, 2018
mongo-webui Added mongo Jul 23, 2018
mongo Added mongo Jul 23, 2018
mysql Added mysql Jul 23, 2018
nginx Fixed nginx Dockerfile Aug 22, 2019
node Added puppeteer support to workspace and node services Aug 22, 2019
pgadmin Added pgadmin from Laradock Jul 24, 2018
phpmyadmin
postgres-postgis
postgres Added postgres Jul 23, 2018
rabbitmq Added rabbitmq Jul 23, 2018
redis Added redis and phpredisadmin Jul 23, 2018
rethinkdb Added rethinkdb Jul 24, 2018
workspace Added puppeteer support to workspace and node services Aug 22, 2019
.editorconfig Updated docker commands to respect env vars Jul 29, 2018
.gitignore Added aliases.sh from Laradock to workspace image Jul 28, 2018
.travis.yml Added more missing container tests Jul 24, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Jul 23, 2018
LICENSE Initial commit Jul 23, 2018
README.md Updated docker commands to respect env vars Jul 29, 2018
docker-compose.sync.yml
docker-compose.yml Merge pull request #8 from shov/feature/puppeteer-support Aug 22, 2019
docker-sync.yml Changed caddy dep to node from php-npm Jul 24, 2018
env-example Merge pull request #8 from shov/feature/puppeteer-support Aug 22, 2019
logs.sh Updated docker commands to respect env vars Jul 29, 2018
mongo.sh Added mongo.sh Jul 29, 2018
mysql.sh Added psql command, set default db to default for mysql Jul 29, 2018
npm.sh
psql.sh Added psql command, set default db to default for mysql Jul 29, 2018
restart.sh Added scripts to control docker Jul 24, 2018
shell.sh Added shell.sh script Jul 24, 2018
start.sh Update start.sh Feb 20, 2019
stop.sh Updated docker commands to respect env vars Jul 29, 2018
sync.sh
travis-build.sh Forgot +x bit on travis-build.sh file Jul 24, 2018
yarn.sh Added yarn.sh and npm.sh commands Jul 29, 2018

README.md

Nodedock Build status

Nodedock is a community-driven project to create the best Docker Node development environment.

Node + Docker

Goal

I'm an ex-PHP developer, and I've used to use Laradock and similar solutions a lot. However, there's no close thing in NodeJS ecosystem (or at least I didn't find it). So, I decided to build a solution based on Laradock, but for NodeJS. This is how Nodedock was born.

Check it out on example project

Just hit in a terminal:

cp env-example .env
APP_CODE_PATH_HOST=./examples/simple/ docker-compose up -d node nginx

Open http://127.0.0.1/ to get a greeting from an example project :)

You can check the logs using ./logs.sh command to see what's going on during the project startup.

See other examples here

Quick Start

You need to have a node project with package.json with start script definition as node container will run npm start command after start up.

cd $NODE_PROJECT_ROOT
git submodule add https://github.com/nodedock/nodedock.git
cp nodedock/env-example nodedock/.env
cd nodedock/
docker-compose up -d nginx node workspace
docker-compose logs -f

The last one is optional.

Alternative Commands

You can also declare the list of services you'd like to run using NODEDOCK_SERVICES variable in .env (you can create your own .env by copying env-example file).

After that, you'll be able to use start.sh, stop.sh, restart.sh and logs.sh scripts which are located in the root directory of nodedock.

Documentation

Available on project's website nodedock.io

Working with Documentation

You'll need Docsify:

yarn global add docsify-cli

After that, you can view docs by running docsify serve ./docs and visiting http://localhost:3000

Based on Laradock

This project is based on awesome Laradock (contributors)

LICENSE

MIT

You can’t perform that action at this time.