This is a sample that shows how to use nginx and another api server in a docker compose setup.
- Make sure you have docker installed on the target machine.
- Clone this repository.
- Make sure
docker-compose
command is available and added to the path. - Add the following host file entry in
/etc/hosts
127.0.0.1 tos.demo
At the folder where this repository is cloned,
docker-compose up -d --build
The nginx server is live at port 8080
.
You can open this link once everything is done http://tos.demo:8080.
At the root of this repository
docker-compose down
Change the server_name
in nginx.conf file to domain where you expect the application to be hosted at.