Skip to content

Pierre-rigodiat/docker-mdcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install docker

On MAC and Windows (Docker Toolbox)

Download docker toolbox at Docker Toolbox

Docker toolbox contains: Docker Compose, Docker Machine and Kitematic

On Linux

Get Docker

$ wget -qO- https://get.docker.com/ | sh

Get Docker compose

$ sudo apt-get install python-pip
$ sudo pip install docker-compose

Run the software for the first time

You might need to launch the following commands with root privileges

Build the docker-compose.yml file

$ docker-compose build

Init the mongo database

Launch the container

$ docker-compose up db

Wait for the launch of the database

Connect to the container to launch the init script

In a new tab or console:

$ docker exec -i -t db_mongo /bin/bash
$ ./set_mongodb_password
$ exit

Stop the container:

$ docker-compose stop db

Create the super user

Launch the web container

$ docker-compose up web

Wait for the launch of django

Connect to the container to launch the init script

In a new tab or console:

$ docker exec -i -t django /bin/bash
$ ./add_super_user
$ exit

Stop the container:

$ docker-compose stop web

Run the software

$ docker-compose up -d

The -d parameter launches the project in detach mode

Stop the software

$ docker-compose stop

Access

For the access, go to : http://127.0.0.1:80/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published