Python App In Docker (PAID) example prepared for Moscow Python Meetup #35 and Pycon Russia 2016
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
etc
.gitignore
Dockerfile
LICENSE
README.md
docker-compose.yml
requirements.txt

README.md

paid

Python App In a Docker (PAID) example prepared for Moscow Python Meetup and Pycon Russia 2016.

Prepare

First you should provision a Docker host (e.g. with Docker Machine) and install Docker Compose.

Get an image

Clone this repo

git clone git@github.com:satyrius/paid.git && paid

Build an image

docker-compose build

Up and run

Start containers with compose

docker-compose up -d

Run Django migrations

docker exec web /opt/demo/app/manage.py migrate --no-input

You can create a user

docker exec -it web /opt/demo/app/manage.py createsuperuser

And check how it works in browser

http://<docker_host_ip>/admin/