Skip to content

AymanAzzam/Dockerize-React-Nginx

Repository files navigation

Dockerize React Nginx

This project to:

  1. Dockerize React app on development environment using docker compose

  2. Deploy React app on Nginx and Dockerize them using docker compose

Run Development

  1. Install Prerequisites

    1. Docker (Windows - Linux)
    2. Docker Compose
  2. Run docker-compose.yaml

docker-compose up
  1. Visit http://localhost:3000

Run Production

  1. Run docker-compose-prod.yaml
docker-compose -f docker-compose-prod.yaml up -d
  1. Visit http://host:8080