version: "3.9" services: postgres: container_name: postgres image: postgres:15.2-alpine environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres ports: - 5432 healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 dbt: container_name: dbt build: . image: dbt-jaffle-shop volumes: - ./:/usr/src/dbt depends_on: postgres: condition: service_healthy