Skip to content

mate-academy/devops_todolist_docker_core_task_3_docker_compose

Repository files navigation

Django-Todolist

Django-Todolist is a todolist web application with the most basic features of most web apps, i.e. accounts/login, API and (somewhat) interactive UI.


CSS | Skeleton JS | jQuery

Explore

Try it out by installing the requirements. (Works only with python >= 3.8, due to Django 4)

pip install -r requirements.txt

Create a database schema:

python manage.py migrate

And then start the server (default: http://localhost:8000)

python manage.py runserver

Now you can browse the API or start on the landing page

Task

Prerequisites

  • Fork this repository

Requirements

  1. Prepare a docker-compose.yml file that will build and start both MySQL db and Todolist app
  2. Remove RUN python manage.py migrate as the database is no longer available at the build time
  3. Refactor ENTRYPOINT to execute both db migration and application start. Example: ENTRYPOINT ["sh", "-c", “command1 && command2”]
  4. The application should work with no issues after running docker-compose up
  5. Create the INSTRUCTION.md file with detailed instructions on how to run and stop containers with docker-compose
  6. Todos should be stored in MySQL Database, with a persistent volume connected
  7. Create PR with your changes and attach it for validation on a platform

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors