Content
Containerise your Week 7 project:
Dockerfile and a .dockerignore.docker logs -f while you send a request.docker exec and find your JAR.Add Docker Compose to your Week 7 project.
compose.yaml with your api (built from your Dockerfile) and a db (postgres:<version>): ports, environment variables and a named volume.docker compose up --build and call an endpoint that uses the database. This time it works.docker compose down, then up again — confirm your data survived.docker compose logs -f api while sending requests.Publish your Week 7 project image.
<your-username>/<project>:1.0 and push it.compose.yaml, replace build: . with image: <classmate>/<project>:1.0 and run their backend on your machine. (Ask for their schema.sql too — their tables are not yours.)Take your Week 7 project live, end to end.
Dockerfile and .dockerignore to GitHub and create a Render web service./health endpoint and configure it as the Health Check Path.SPRING_DATASOURCE_PASSWORD to something wrong and redeploy. Watch it fail, find the evidence in the Logs tab, then fix it. This is the debugging you will do at work.The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

Built with ❤️ by the HackYourFuture community · Thank you, contributors
Found a mistake or have a suggestion? Let us know in the feedback form.