- git
- docker-compose
- docker
# Clone Git repository
$ git clone [email protected]:PatrickHoward/ISPTermProject.git Scribble
$ cd Scribble
# Update Git submodules
$ git submodule update
# Build Docker images
$ docker-compose build
# Create and start Docker container stack
$ docker-compose up -d
# Stop all containers on the Docker stack
$ docker-compose down
# Build images for production
$ docker-compose -f ./docker-compose.yml build
# Generate static files and deploy
docker-compose -f ./docker-compose.yml run scribble-client \
&& docker-compose -f ./docker-compose.yml scribble-server scribble-router
$ echo $PORT # The port that NGINX listens to for HTTP requests
80
$ echo $HTTPS_PORT # The port taht NGINX listens to for HTTPS requests
443
After starting the container stack, the contains can be accessed at the following locations.
- Client - http://localhost
- Server - http://api.localhost