Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adamreeve/docker-python-app
- Owner: adamreeve
- Created: 2015-05-23T03:08:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T03:09:02.000Z (over 9 years ago)
- Last Synced: 2024-10-16T04:41:03.480Z (28 days ago)
- Language: Python
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-composesudo systemctl enable docker
sudo systemctl start dockersudo 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
```