https://github.com/i008/docker-routines
various python docker routines and snippets
https://github.com/i008/docker-routines
docker flask
Last synced: about 2 months ago
JSON representation
various python docker routines and snippets
- Host: GitHub
- URL: https://github.com/i008/docker-routines
- Owner: i008
- License: mit
- Created: 2016-12-05T11:42:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T21:23:49.000Z (over 9 years ago)
- Last Synced: 2025-01-12T14:37:58.765Z (over 1 year ago)
- Topics: docker, flask
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE.txt
Awesome Lists containing this project
README
#### 1) Multiple flask apps behind nginx proxy
- Use 0.0.0.0 as host-ip in flask (better use a manager like gunicorn to run your apps)
- Remember to edit Nginx redirects to match container names in docker-compose
```bash
docker-compose up --build
curl http://localhost://app1/hello
Hello from app1
curl http://localhost://app2/hello
Hello from app2
```
#### docker-shortcuts:
```bash
#stop all containers
docker stop $(docker ps -a -q)
#remove all containers
docker rm $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
```