yt-dlp-dags/airflow/configs/docker-compose.config-generate.yaml

15 lines
583 B
YAML

# This file is used to generate the necessary configuration files for the main application stack.
# It should be run as a one-off command before starting the main services.
# Example: docker-compose -f airflow/docker-compose.config-generate.yaml run --rm config-generator
services:
config-generator:
image: python:3.12-slim
working_dir: /app
env_file:
- ./.env
volumes:
# Mount the entire project directory to access scripts and write output files
- ./:/app
command: >
sh -c "pip install jinja2 && python3 /app/generate_envoy_config.py"