Keep Dev Settings Out of the Base Compose File
There is no container engine in this lab: docker compose isn't available, but docker-compose config validates and prints the merged configuration, which is what the grader reads.
/home/student/projects/storefront/compose.yaml is used both by developers and by the CI pipeline (with -f compose.yaml only). It mixes in developer settings that must not reach CI.
Split it so that:
compose.yaml (used alone with -f compose.yaml) has no published ports, no bind mount of source code, and no DEBUG variable for api. It keeps everything else: images, DATABASE_URL, the db service and its named volume.compose.override.yaml adds, for api: the port 8000:8000, the bind mount ./src:/app/src, and DEBUG: "1".docker-compose config (which picks up the override file automatically) shows the full developer setup.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.