카이도스의 Tech Blog
Airflow docker 설치 본문
728x90
반응형
# 도커 설치
curl -fsSL https://get.docker.com | sh
docker version
Client: Docker Engine - Community
Version: 23.0.1
API version: 1.42
Go version: go1.19.5
Git commit: a5ee5b1
Built: Thu Feb 9 19:46:56 2023
OS/Arch: linux/amd64
Context: default
docker compose version
Docker Compose version v2.16.0
# airflow 설치
curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.1.0/docker-compose.yaml'
mkdir ./dags ./logs ./plugins
echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env
docker compose up airflow-init
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4bfdaf065dce postgres:13 "docker-entrypoint.s…" 55 seconds ago Up 53 seconds (healthy) 5432/tcp root-postgres-1
e49f398136fe redis:latest "docker-entrypoint.s…" 55 seconds ago Up 53 seconds (healthy) 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp root-redis-1
docker compose up -d
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b254b1e98a7a apache/airflow:2.1.0 "/usr/bin/dumb-init …" 10 seconds ago Up 7 seconds (health: starting) 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp root-airflow-webserver-1
b08d80f2099c apache/airflow:2.1.0 "/usr/bin/dumb-init …" 10 seconds ago Up 7 seconds (health: starting) 8080/tcp root-airflow-worker-1
ed7d4fb06baf apache/airflow:2.1.0 "/usr/bin/dumb-init …" 10 seconds ago Up 7 seconds (health: starting) 0.0.0.0:5555->5555/tcp, :::5555->5555/tcp, 8080/tcp root-flower-1
c3cecb5914f3 apache/airflow:2.1.0 "/usr/bin/dumb-init …" 10 seconds ago Up 7 seconds (health: starting) 8080/tcp root-airflow-scheduler-1
335fb47fdcaa apache/airflow:2.1.0 "/usr/bin/dumb-init …" About a minute ago Up 7 seconds 8080/tcp root-airflow-init-1
4bfdaf065dce postgres:13 "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 5432/tcp root-postgres-1
e49f398136fe redis:latest "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp root-redis-1
#접속
http://서버IP:8080/
airflow/airflow
728x90
반응형
'서버작업' 카테고리의 다른 글
URL 호출 경유하기(서버에서 url 호출 안될때) (0) | 2024.05.27 |
---|---|
ip addr 로 ip 수동 추가 (0) | 2023.03.30 |
Airflow local 설치 (0) | 2023.03.07 |
DHCP 서버 구축 (0) | 2023.03.07 |
우분투 네트워크 본딩 설정 (0) | 2023.03.06 |
Comments