Simple demo of microservices with docker and flask
Composed of 3 containers:
- hello container
- name container
- concat container
A small container that returns a single "hello" response on every GET request to http://hello:5000/
A small container that returns the first segment in the request URI to http://name:5000/
A small container that calls both the Hello and the Name container in succession. The result is concatted and returned.
Assuming you installed docker + docker-compose locally.
-
Run docker-compose up
-
Execute a request to the concat container using the following url: http://127.0.0.1/eelke-van-den-bos
Will result in the following:
hello eelke-van-den-bos