airflow lightweight (docker compose) #
Read vietnamese step-by-step version here
prerequisites #
Make sure you have docker
and docker-compose
installed
Follow my guide to install docker and docker-compose: here
getting started #
- Clone this repo
- Optional: Create a
.env
file in the root directory with the fields in.env.example
AIRFLOW_IMAGE_NAME=apache/airflow:slim-2.9.3
AIRFLOW_UID=1000
AIRFLOW_GID=1000
_AIRFLOW_WWW_USER_USERNAME=airflow
_AIRFLOW_WWW_USER_PASSWORD=changeme
- Optional: Update the
dags
folder with your own dags - Optional: Update the
requirements.txt
file with your own dependencies - Run the whole airflow stack using:
if you missed the
.env
setup, the default values will be used, which are not secure
- Access the Airflow webserver at
http://localhost:8080
update connections #
Run this command to update connections:
This will add/modify/remove the connections by tracking the connections.json
file.
{
"your-conn-id-1": {
"conn_type": "ssh",
"description": "optional",
"login": "required",
"password": "required",
"host": "xxx.xxx.xxx.xxx",
"port": 22,
"schema": "optional",
"extra": "optional"
},
}
Note that you should clear all connections in Admin -> Connections before run make update-connections
.