In this project you will find a Dockerfile and docker-compose.yml. The last file specified starts the API container for the ToDo list
- Docker
P.S. You can install Docker Toolbox if you have an older Windows release than Windows 10.
- clone this repo
git clone https://github.com/To-n-y/todo-api.git [<dir_name>]
- Go to the folder with the command
cd <dir_name>
- Make .env file:
- make a copy of the template of .env file
cp .env.template .env
- assign actual values to all fields.
- make a copy of the template of .env file
- To mount the database, go to Docker and then do: Settings -> Resources -> FileSharing. Add db folder and push Apply & Restart
- Run containers
docker-compose up
ormake run_container
; - When the project is running, go to
localhost:80
and check if you see 'Not Found'. If you have installed Docker Toolbox, go tohttp://192.168.100.14:80
- Go to localhost:80/toDoList or check the postman collection.