I’ve installed Airflow according documentation.
Fetching docker-compose.yaml:
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.9.2/docker-compose.yaml'
mkdir -p ./dags ./logs ./plugins ./config
echo -e "AIRFLOW_UID=$(id -u)" > .env
docker compose up airflow-init
Docker-compose.yaml changes:
#image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.9.2}
build: .
Dockerfile:
FROM apache/airflow:2.9.2
ADD requirements.txt .
RUN pip install apache-airflow==${AIRFLOW_VERSION} -r requirements.txt
requirements.txt:
clickhouse_connect==0.7.8
ujson==5.10.0
And at the end docker up:
docker compose -f /opt/beget/airflow/docker-compose.yaml up -d --build
Now Airflow is up:
But I can’t use:
http://localhost:8080/
Also I don’t get that I need to do in this part of instruction.
That I’ve done wrong and how to fix it?
I also can see old images with “docker images command”:
Docker Compose version v2.27.0
Docker version 26.1.4, build 5650f9b
Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-112-generic x86_64)
Folder with Airflow:
webserver_config.py is folder,I don’t know why.