~/signup holds a working stack. Read the file before you run it; note the first line.
Start it and list the containers:
sh
docker compose up -d
docker compose psRead the database logs:
Add two signups through the app:
sh
curl -s -X POST 'localhost:8000/signup?name=ada'
curl -s -X POST 'localhost:8000/signup?name=grace'
curl -s localhost:8000Read the rows directly from Postgres inside the db service:
The app logged each request:
Finally, print the configuration Compose resolved from the file: