# `Testcontainers.DockerCompose`
[🔗](https://github.com/testcontainers/testcontainers-elixir/blob/main/lib/compose/docker_compose.ex#L1)

A struct with builder functions for creating a Docker Compose configuration.

# `new`

Creates a new DockerCompose configuration.

The `filepath` can be a path to a directory containing a docker-compose.yml file,
or a path to a specific compose file.

# `with_build`

Sets whether to build images before starting containers.

# `with_compose_file`

Adds additional compose files to use with the -f flag.

# `with_env`

Sets an environment variable for the compose environment.

# `with_profile`

Adds a profile to enable when starting compose.

# `with_project_name`

Sets the project name for the compose environment.

# `with_pull`

Sets the pull policy for compose services.

# `with_remove_volumes`

Sets whether to remove volumes when stopping compose.

# `with_services`

Sets the specific services to start. If empty, all services are started.

# `with_wait_strategy`

Sets a wait strategy for a specific service.

# `with_wait_timeout`

Sets the wait timeout in milliseconds.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
