Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.35 KB

File metadata and controls

42 lines (30 loc) · 1.35 KB

Docker Tutorial

This simple web application has been built as an example/tutorial for introducing Docker and Docker Compose features in a talk for the Applied Computer Science course at University of Urbino.

The application consists of a database of students and grades, to show how is easy to setup an application composed of more services (such as an application server and a database management system)

Setup

To run the application install Docker and Docker Compose, then run:

$ docker-compose up -d

To check the status:

$ docker-compose ps

        Name                   Command            State            Ports
----------------------------------------------------------------------------------
dockertutorial_app_1   /bin/sh -c python app.py   Up      127.0.0.1:8000->8000/tcp
dockertutorial_db_1    /entrypoint.sh mongod      Up      27017/tcp

To see the log:

$ docker-compose logs

See docker-compose help for additional information.