Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamreeve/docker-python-app

Python web app using Docker containers
https://github.com/adamreeve/docker-python-app

Last synced: 12 days ago
JSON representation

Python web app using Docker containers

Awesome Lists containing this project

README

        

Python Web-App with Docker
==========================

Flask web-app served by nginx+Gunicorn with a Postgresql database,
all running in Docker containers using docker-compose.

Fedora 21 Docker Setup
----------------------

```shell
sudo yum install docker
sudo pip install docker-compose

sudo systemctl enable docker
sudo systemctl start docker

sudo groupadd docker
sudo chown root:docker /var/run/docker.sock
sudo usermod -a -G docker $USERNAME
```

Running
-------

```shell
# Build docker images:
make build

# Create database and set up test-data
# by running psql in another container:
make dbsetup

# Run nginx container + python app container + postgresql
make run

# Test it out:
curl http://localhost:8080
```