Reading a compose file
services:
api:
build: ./apps/api
ports: ["3001:3001"]
depends_on: [postgres, redis]
postgres:
image: postgres:16
environment: { POSTGRES_PASSWORD: dev }
redis:
image: redis:7Each service is one container. depends_on only orders startup; it does not wait for the database to accept connections.