ComeçarComece de graça

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

Este exercício faz parte do curso

Intermediate Docker

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício