Docker Boilerplate base on [email protected]:Producters/docker-node-react-starter.git empty backend and frontend application
Get latest docker (1.11+) & docker-compose (1.7+):
https://www.docker.com/
https://docs.docker.com/compose/
Pull seed to your project:
git init
git remote add starter [email protected]:hugominas/APINodeCouchDBContainer.git
git pull starter master
Start dev server:
./bin/develop.sh
Wait for docker to set up dev env, then open http://localhost:8000
# build production images, create db backup & start
./bin/deploy.sh
# stop server
./bin/stop_production.sh
# start srever
./bin/start_production.sh
In prod mode sources are added to docker image rather than mounted from host. Nginx serves static files, proxy pass to node for app. Logs in logs
dir.
Copy your .key and .crt files to nginx/ssl
and run ./bin/deploy.sh
.
# frontend
./bin/npm_frontend.sh install [package] --save-dev
# backend
./bin/npm_backend.sh install [package] --save