/flask-scaffold-with-docker

This project is based on Flask-Scaffold and a ubuntu docker envrionment is also provided for quick start.

Primary LanguagePython

The develop env for flask scaffold

This project is based on Flask-Scaffold and a ubuntu docker envrionment is provided for it.

Base project

Base Docker Image

Usage

The first time

Step 1. run container

docker-compose up -d

Step 2. go into container

docker exec -it flask bash

Step 3. prepare the scaffold and database

/miniconda/bin/python scaffold.py scaffold/blog.yaml
/miniconda/bin/python db.py db init
/miniconda/bin/python db.py db migrate
/miniconda/bin/python db.py db upgrade

Step 4. close container

docker-compose down

After the first time:

Step 1. start container

docker-compose up -d

Step 2. close container

docker-compose down

The useage of flask scffold

flask: http://localhost:80

phppgadmin: http://localhost:8000

supervisor: http://localhost:9001

Python and Jupyter notebook

Python

python3.6 & pip3.6 in Miniconda3

Jupyter notebook

access to jupyter notebook through "http://localhost:8080" with login password: "jupyter"