mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add httpbin
This commit is contained in:
parent
9a01500337
commit
9d352fd0f2
@ -35,6 +35,7 @@ dockerfiles
|
||||
- [x] fteproxy-arm :+1:
|
||||
- [x] grafana
|
||||
- [x] h2o
|
||||
- [x] httpbin :+1:
|
||||
- [x] hubot
|
||||
- [x] hugo
|
||||
- [x] hugo-arm
|
||||
|
12
httpbin/Dockerfile
Normal file
12
httpbin/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
#
|
||||
# Dockerfile for httpbin
|
||||
#
|
||||
|
||||
FROM vimagick/python:3
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN pip install gunicorn httpbin
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:80", "httpbin:app"]
|
25
httpbin/README.md
Normal file
25
httpbin/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
httpbin:
|
||||
image: vimagick/httpbin
|
||||
ports:
|
||||
- "27815:80"
|
||||
restart: always
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ docker-compose up -d
|
||||
$ curl http://127.0.0.1:27815/ip
|
||||
```
|
||||
|
||||
[1]: http://httpbin.org
|
5
httpbin/docker-compose.yml
Normal file
5
httpbin/docker-compose.yml
Normal file
@ -0,0 +1,5 @@
|
||||
httpbin:
|
||||
image: vimagick/httpbin
|
||||
ports:
|
||||
- "27815:80"
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user