samhstn / node_docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Start

Install docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce

Install docker compose

sudo curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Clone the repo

git clone https://github.com/shouston3/node_docker.git

Build the image

sudo docker build -t node-throwaway .

Start the server

sudo docker-compose up --build

### Configure nginx

sudo apt-get install nginx

configure the sudo rm /etc/nginx/sites-enabled/default file, then

sudo nginx -s reload

About


Languages

Language:JavaScript 100.0%