staeff / martordemo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerize martordemo

Follows https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application with slight adoptions.

Run from dockerhub

$ docker run -dp 8080:8080 -e DJANGO_SUPERUSER_USERNAME=admin -e DJANGO_SUPERUSER_PASSWORD=sekret1 -e DJANGO_SUPERUSER_EMAIL=admin@example.com staeff/martordemo

Run locally with docker-compose

$ docker-compose up -d

Run locally without docker-compose

$ git clone https://github.com/staeff/martordemo.git
$ docker build -t martordemo .
$ docker run -it -p 8080:8080 \
     -e DJANGO_SUPERUSER_USERNAME=admin \
     -e DJANGO_SUPERUSER_PASSWORD=sekret1 \
     -e DJANGO_SUPERUSER_EMAIL=admin@example.com \
     martordemo

Deploy to fly.io

The app is ready to be deployed to fly.io. It should be a matter of just issueing flyctl deploy. Maybe the app name in fly.toml needs to be changed, because the need to be unique.

About


Languages

Language:Python 48.7%Language:HTML 47.2%Language:Dockerfile 2.1%Language:Shell 1.8%Language:Procfile 0.2%