This is a small project designed to introduce Docker and Docker Compose. It was created in approximately 3 hours.
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/CharlyRousseau/todo-app.git
-
Navigate to the project directory:
cd todo-app/
-
Edit the
docker-compose.yml
file and ensure that the port for the frontend service matches theALLOWED_PORT
in the backend service. For example, if the frontend service is running on port 3000, theALLOWED_PORT
should also be 3000. -
Build and run the Docker containers:
Your application should now be running at http://localhost:<FRONTEND_PORT>
, where <FRONTEND_PORT>
is the port you set for the frontend service.
Please ensure that the port for the frontend service in the docker-compose.yml
file matches the ALLOWED_PORT
in the backend service. This is necessary for the CORS configuration to work correctly.