Jason Zhu 43a2dfefc7 | ||
---|---|---|
.. | ||
backend | ||
frontend | ||
proxy | ||
README.md | ||
docker-compose.yaml |
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:
- Comment all other containers
- Run
docker compose build
&docker compose up
- Test by
curl localhost:5000
, should return{"version":"1.0.0"}
Frontend only
How to test it:
- Comment all other containers
- Run
docker compose build
&docker compose up
- Test by
curl localhost
, should return a html file (as/eg3/frontend/index.html
)