Developed for help to create containerized projects using Docker with Nginx features.
- Install Docker and Docker Compose.
- Clone this repository or fork this repository:
git clone https://github.com/heytorvas/template-nginx-docker.git
- Change directory to repository:
cd template-nginx-docker
- Build the containers:
docker-compose build &
- Up the containers:
docker-compose up nginx_rp &
- Run project:
http://localhost/server1
http://localhost/server2
http://localhost/server3
- Up the containers:
docker-compose up nginx_lb &
- Run project:
http://localhost