2016-01-14 11:20:38 +02:00
|
|
|
httpbin
|
|
|
|
=======
|
|
|
|
|
|
|
|
![](https://badge.imagelayers.io/vimagick/httpbin:latest.svg)
|
|
|
|
|
|
|
|
[httpbin][1] is a HTTP Request & Response Service, written in Python + Flask.
|
|
|
|
|
|
|
|
## docker-compose.yml
|
|
|
|
|
|
|
|
```yaml
|
2022-02-14 12:23:42 +02:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
httpbin:
|
|
|
|
image: vimagick/httpbin
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
restart: unless-stopped
|
2016-01-14 11:20:38 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## up and running
|
|
|
|
|
2022-02-14 12:23:42 +02:00
|
|
|
```bash
|
2016-01-14 11:20:38 +02:00
|
|
|
$ docker-compose up -d
|
2022-02-14 12:33:10 +02:00
|
|
|
$ curl http://127.0.0.1:8000/ip
|
|
|
|
$ curl http://127.0.0.1:8000/get
|
|
|
|
$ curl http://127.0.0.1:8000/post -d hello=world
|
2016-01-14 11:20:38 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
[1]: http://httpbin.org
|