1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/httpbin/README.md

30 lines
511 B
Markdown
Raw Normal View History

2016-01-14 09:20:38 +00: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 10:23:42 +00:00
version: "3.8"
services:
httpbin:
image: vimagick/httpbin
ports:
- "8000:8000"
restart: unless-stopped
2016-01-14 09:20:38 +00:00
```
## up and running
2022-02-14 10:23:42 +00:00
```bash
2016-01-14 09:20:38 +00:00
$ docker-compose up -d
2022-02-14 10:33:10 +00: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 09:20:38 +00:00
```
[1]: http://httpbin.org