A 3.8 file with the usual legacy
The version key, a fixed container name, and a depends_on that does not wait for readiness
version: "3.8"
services:
web:
image: nginx
container_name: my-web
depends_on:
- db
db:
image: postgres:16