Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcrowson/docker_flask_nginx_uwsgi
Simple Fibonacci API example that runs on a Docker container
https://github.com/mcrowson/docker_flask_nginx_uwsgi
Last synced: 21 days ago
JSON representation
Simple Fibonacci API example that runs on a Docker container
- Host: GitHub
- URL: https://github.com/mcrowson/docker_flask_nginx_uwsgi
- Owner: mcrowson
- Created: 2015-08-20T17:51:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-20T18:47:22.000Z (over 9 years ago)
- Last Synced: 2024-10-27T22:58:45.364Z (2 months ago)
- Language: Python
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple dockerfile for running the example fib Flask app behind nginx and uwsgi.
Assumes that docker is running on the current machine
1. In the command line, make sure you're in this directory
docker build -t fib_nginx .2. Run the container
docker run -d -p "80:80" --name fib_container fib_nginxIf you're on linux you'll see your app working at localhost/fib/
If you're on Mac/Windows and are using boot2docker, get that ip and then go there
$ boot2docker ip
111.111.111.111then visit it in your browser
http://111.111.111.111/fib/55and you should see the answer: 139583862445