add readme to docker example

This commit is contained in:
Umputun
2021-04-10 23:51:12 -05:00
parent ddf951b567
commit 825a3c3c7f
2 changed files with 12 additions and 9 deletions

12
examples/docker/README.md Normal file
View File

@@ -0,0 +1,12 @@
# Example of a docker provider
run this example with `docker-compose up` and try to hit containers:
- `curl http://localhost/api/svc1/123`
- `curl http://localhost/api/svc2/345`
- `curl http://localhost/whoami/test`
you can also try the assets server:
- `curl http://localhost/1.html`
- `curl http://localhost/`

View File

@@ -1,14 +1,5 @@
# run this example as docker-compose up and try to hit containers:
# curl http://localhost/api/svc1/123
# curl http://localhost/api/svc2/345
# curl http://localhost/whoami/test
# also try assets server:
# curl http://localhost/1.html
# curl http://localhost/
services:
reproxy:
build: .
image: umputun/reproxy:master
container_name: reproxy
hostname: reproxy