Computer scienceSystem administration and DevOpsDockerDocker Compose

Services and their attributes

Dependent and dependency

Report a typo

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
Enter a short text

Create a free account to access the full topic