local-nginx-tutorial/eg3
Jason Zhu 43a2dfefc7 Finished Frontend only for eg3 2023-05-04 23:51:49 +10:00
..
backend eg3 finished Backend only 2023-05-04 23:45:36 +10:00
frontend Finished Frontend only for eg3 2023-05-04 23:51:49 +10:00
proxy eg3 finished Backend only 2023-05-04 23:45:36 +10:00
README.md Finished Frontend only for eg3 2023-05-04 23:51:49 +10:00
docker-compose.yaml Finished Frontend only for eg3 2023-05-04 23:51:49 +10:00

README.md

e.g. 3: Create an Ningx Reverse Proxy With Docker

How To Run Multiple Docker Containers Under One URL

Backend only

How to test it:

  1. Comment all other containers
  2. Run docker compose build & docker compose up
  3. Test by curl localhost:5000, should return {"version":"1.0.0"}

Frontend only

How to test it:

  1. Comment all other containers
  2. Run docker compose build & docker compose up
  3. Test by curl localhost, should return a html file (as /eg3/frontend/index.html)