Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.08 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.08 KB

MiaDB

Framework to create deployment plans on docker swarm infrastructure

configuration

install

run the pip install -f requirements.txt

sercurity

change SECRET_KEY before production deployment

storage

change BasePath = "/root"
with the root directory storage for your containers

docker

Download and install docker 1.12
run docker with the network parameters
change the file /usr/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd -H 0.0.0.0:2376 -H unix:///var/run/docker.sock

database:

use django database configuration
default configuration is sqlite3
can change to any database that is supported by django in the config file

python manage.py migrate
python manage.py createsuperuser

use the configuration file in the images folder

insert them into the database before deployment

run in developer mode

python manage.py runserver

run in production

for production running use gunicorn with nginx and postgres database