Service containers are containers launched alongside a job to provide a test dependency, such as PostgreSQL or Redis. Declared under services:, they are reachable by the job and removed at the end, which enables integration tests against a real database.
Example
services:
db:
image: postgres:16
env:
POSTGRES_PASSWORD: test