-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (60 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
67 lines (60 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
x-airflow-common: &airflow-common
build:
context: .
dockerfile: Dockerfile.airflow
image: agenticrag-airflow:latest
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres/airflow
AIRFLOW__CORE__FERNET_KEY: ""
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: "false"
AIRFLOW__API__AUTH_BACKENDS: airflow.api.auth.backend.basic_auth
QDRANT_HOST: qdrant
QDRANT_PORT: 6333
volumes:
- ./dags:/opt/airflow/dags
- ./pipeline:/opt/airflow/pipeline
- ./storage:/opt/airflow/storage
depends_on:
- postgres
services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- postgres_data:/var/lib/postgresql/data
airflow-init:
<<: *airflow-common
command: >
bash -c "
airflow db init &&
airflow users create --username airflow --password airflow --firstname Air --lastname Flow --role Admin --email airflow@example.com
"
restart: "no"
airflow-webserver:
<<: *airflow-common
command: webserver
ports:
- "8080:8080"
restart: always
depends_on:
- airflow-init
airflow-scheduler:
<<: *airflow-common
command: scheduler
restart: always
depends_on:
- airflow-init
qdrant:
image: qdrant/qdrant:v1.13.4
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
volumes:
postgres_data:
qdrant_data: