Menu

Tree [ed10e8] master /
 History

HTTPS access


File Date Author Commit
 apidoc 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 app 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 nginx 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 .editorconfig 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 .gitignore 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 README.md 2017-07-03 Koray Gocmen Koray Gocmen [ed10e8] network diagram
 docker-compose.yml 2017-07-03 Koray Gocmen Koray Gocmen [9ca506] Express-Postgres-Nginx-Docker
 run.sh 2017-07-03 Koray Gocmen Koray Gocmen [9dd706] better readme and run script

Read Me

Express-Postgres-Nginx-Docker

Dependencies:

Install Docker

[Docker] https://www.docker.com/ 

Running the app:

First Time:

Builds the app and starts all the containers

$ bash run.sh build

Running:

Runs all the containers

$ bash run.sh run

Recreate Apidocs

Recreates apidocs from the controllers under /routes

$ bash run.sh apidoc

Run Dev Server

Runs the database container and one app instance

$ bash run.sh dev

  • App containers do not start with npm start, they start with pm2-docker start
  • Migrations are runned automatically by starting the app sequelize db:migrate

by Koray Gocmen