Skip to content
This repository was archived by the owner on Nov 16, 2019. It is now read-only.

emukans/docker-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker flask

The purpose of this project is to simplify the process of configuring Flask using Docker. This docker setup contains the minimal configuration of Flask application.

Getting started

  1. Copy .env.example file to .env

    cp .env.example .env
  2. Override environment variables in .env file

  3. Start the project

    docker-compose up -d
  4. Visit http://localhost:8080/

Useful commands

Get into container

docker-compose exec container_name bash

# E.g.
# To get into container with python and application
docker-compose exec app bash

Database

# In app container.

# View list of available commands
flask db

# Create migration for all new models.
flask db init

# Apply new migrations
flask db migrate

Project description

Project contain 3 components:

  • Nginx - to serve static files
  • Gunicorn - as WSGI interface for python apps.
  • Flask app itself - contains all project business logic

License

MIT License: see the LICENSE file.

About

Docker configuration for Flask apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published