I'm encountering an issue with my docker-compose.yaml from Airflow compose file where I receive the error Mapping values are not allowed in multi-line blocks. This error occurs when attempting to use an anchor and alias for reusable configuration blocks.
Description
I'm encountering an issue with my docker-compose.yaml from Airflow compose file where I receive the error Mapping values are not allowed in multi-line blocks. This error occurs when attempting to use an anchor and alias for reusable configuration blocks.
Airflow documentation relative to docker compose:
Fetch docker compose:
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.9.2/docker-compose.yaml'
Minimal Reproduction (if possible, example repository)
Get docker-compose.yaml file.
Facing first error;
Multiple documents are not supported at line 29 (near "---").
After deleting "---"
Mapping values are not allowed in multi-line blocks at line 48 (near "&airflow-common").
Exception or Error
No response
Version
v4.0.0-beta.306