Complete the missing code in the web section to specify the dependency of the web service on the db service using the appropriate attribute in a Docker Compose file.
version: '3'
services:
web:
image: myapp-web:latest
db:
image: myapp-db:latest