CommencerCommencer gratuitement

Dependency calculation

Your team has split your company's primary application into multiple containers, but would like to provide some dependency information within a Docker Compose configuration. Before attempting to define this configuration, you'd like to make sure you understand the startup order of an example application.

services:
  web:
    image: custom_app
    depends_on:
      - redis
  llm:
    image: openai-llm:14
    depends_on:
      - web
  forwarder:
    image: fwd_proxy/latest
  redis:
    image: redis:latest
    depends_on:
      forwarder:
        condition: service_healthy

Cet exercice fait partie du cours

Intermediate Docker

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice