Skip to main content

torrust_tracker_deployer_lib/infrastructure/templating/docker_compose/
mod.rs

1//! Docker Compose integration for application deployment
2//!
3//! This module provides Docker Compose-specific functionality for the deployment system,
4//! including template rendering for Docker Compose configuration files.
5//!
6//! ## Components
7//!
8//! - `template` - Template rendering functionality for Docker Compose files
9//! - `local_validator` - Local `docker compose config` validation after rendering
10//!
11//! Note: Unlike Ansible and Tofu, Docker Compose currently only uses static templates
12//! (no Tera variable substitution). If dynamic templates are needed in the future,
13//! the template module can be extended similar to Ansible.
14
15pub mod local_validator;
16pub mod template;
17
18pub use template::{DockerComposeProjectGenerator, DockerComposeProjectGeneratorError};
19
20/// Subdirectory name for Docker Compose-related files within the build directory.
21///
22/// Docker Compose files will be rendered to `build_dir/{DOCKER_COMPOSE_SUBFOLDER}/`.
23pub const DOCKER_COMPOSE_SUBFOLDER: &str = "docker-compose";