royge / orchestrating-docker

Dockerizing Flask With Compose on Ubuntu 16.04 LTS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerizing Flask With Compose on Ubuntu 16.04 LTS

Getting Started

  1. Install docker and docker-compose.

    sudo apt-get install docker
    sudo pip install docker-compose
    
  2. Run docker-compose.

    docker-compose build
    docker-compose up -d
    
  3. Create database table.

    docker-compose run web /usr/local/bin/python create_db.py
    
  4. Open your browser and goto http://127.0.0.1:90.

Check out the awesome blog post here > https://realpython.com/blog/python/dockerizing-flask-with-compose-and-machine-from-localhost-to-the-cloud/

Cheers!

About

Dockerizing Flask With Compose on Ubuntu 16.04 LTS


Languages

Language:Python 53.6%Language:HTML 44.2%Language:CSS 1.7%Language:JavaScript 0.5%