Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/testdrivenio/flask-docker-traefik
Flask with Docker and Traefik
https://github.com/testdrivenio/flask-docker-traefik
flask flask-letsencrypt lets-encrypt traefik
Last synced: about 1 month ago
JSON representation
Flask with Docker and Traefik
- Host: GitHub
- URL: https://github.com/testdrivenio/flask-docker-traefik
- Owner: testdrivenio
- License: mit
- Created: 2021-05-24T13:17:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T12:56:57.000Z (over 1 year ago)
- Last Synced: 2024-08-13T07:08:42.698Z (5 months ago)
- Topics: flask, flask-letsencrypt, lets-encrypt, traefik
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 10
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - testdrivenio/flask-docker-traefik - Flask with Docker and Traefik (Python)
README
# Dockerizing Flask with Postgres, Gunicorn, and Traefik
## Want to learn how to build this?
Check out the [tutorial](https://testdriven.io/blog/flask-docker-traefik/).
## Want to use this project?
### Development
Build the images and spin up the containers:
```sh
$ docker-compose up -d --build
```Test it out:
1. [http://flask.localhost:8008/](http://flask.localhost:8008/)
1. [http://flask.localhost:8081/](http://flask.localhost:8081/)### Production
Update the domain in *docker-compose.prod.yml*, and add your email to *traefik.prod.toml*.
Build the images and run the containers:
```sh
$ docker-compose -f docker-compose.prod.yml up -d --build
```