Updates and REbuild based on Kenneth Reitz's project
Run locally:
docker pull ghcr.io/pichuang/httpbin-re:master
docker run -p 8080:80 ghcr.io/pichuang/httpbin-re:master
# or
docker-compose up -dSteps below front the app with nginx so you get HTTP on http://localhost:8080 and HTTPS on https://localhost:8443.
- Generate (or copy in) certificates. A quick self-signed pair looks like:
mkdir -p nginx/certs
openssl req -x509 -nodes -newkey rsa:2048 \
-keyout nginx/certs/server.key \
-out nginx/certs/server.crt \
-subj "/CN=localhost" -days 365Replace the generated files with your trusted certificates when deploying elsewhere.
- Launch the compose stack (nginx now terminates TLS and proxies to the
reservice):
docker-compose up -d- Visit
http://localhost:8080orhttps://localhost:8443. Adjust the published ports indocker-compose.ymlif you need to bind directly to 80/443.
See httpbin.org for more information.
- Change
- Ubuntu 18.04 -> Ubuntu 22.04
- Travis CI -> GitHub Actions
- Python 3.6 -> Python 3.10
- Pipenv -> built-in pip
- Add
- Provide variables to change TITLE and DESCRIPTION
- Follow OCI Specification
