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 2 months ago
JSON representation

Flask with Docker and Traefik

Lists

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
```