forked from stevencox/roger
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
167 lines (157 loc) · 4.88 KB
/
docker-compose.yaml
File metadata and controls
167 lines (157 loc) · 4.88 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
version: '3.8'
x-airflow-common: &airflow-common
build: .
environment: &airflow_common_environment
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
AIRFLOW__CORE__FERNET_KEY: ''
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'true'
AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
AIRFLOW__API__AUTH_BACKENDS: 'airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session'
AIRFLOW__SCHEDULER__ENABLE_HEALTH_CHECK: 'true'
AIRFLOW__CORE__SIMPLE_AUTH_MANAGER_USERS: 'admin:Admin'
ROGER_ELASTICSEARCH_HOST: "elasticsearch"
ROGER_ELASTICSEARCH_PASSWORD: ""
ROGER_ELASTICSEARCH_SCHEME: "http"
ROGER_ELASTICSEARCH_USERNAME: "elastic"
ROGER_REDISGRAPH_GRAPH: "test"
ROGER_REDISGRAPH_HOST: "redis-stack"
ROGER_REDISGRAPH_PASSWORD: ""
ROGER_REDISGRAPH_PORT: "6379"
ROGER_KGX_DATA__SETS: ${KGX_DATA_SETS}
ROGER_LAKEFS__CONFIG_ACCESS__KEY__ID: ${LAKEFS_ACCESS_KEY}
ROGER_LAKEFS__CONFIG_BRANCH: ${LAKEFS_BRANCH}
ROGER_LAKEFS__CONFIG_ENABLED: "true"
ROGER_LAKEFS__CONFIG_HOST: ${LAKEFS_URL}
ROGER_LAKEFS__CONFIG_REPO: ${LAKEFS_REPO}
ROGER_LAKEFS__CONFIG_SECRET__ACCESS__KEY: ${LAKEFS_SECRET_KEY}
ROGER_DUG__INPUTS_DATA__SETS: ${INPUT_DATA_SETS}
ROGER_ANNOTATION_ANNOTATOR__ARGS_SAPBERT_CLASSIFICATION__URL: ${BIOMEGATRON_URL}
ROGER_ANNOTATION_ANNOTATOR__ARGS_SAPBERT_ANNOTATOR__URL : ${SAPBERT_URL}
ROGER_ANNOTATION_NORMALIZER : ${NODE_NORM_URL}
ROGER_ANNOTATION_SYNONYM__SERVICE : ${NAME_RES_URL}
volumes:
- ./dags:/opt/airflow/dags
- ./logs:/opt/airflow/logs
- ./plugins:/opt/airflow/plugins
- ./config:/opt/airflow/config
depends_on:
postgres:
condition: service_healthy
networks:
- airflow-network
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- postgres-db-volume:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "airflow"]
interval: 10s
retries: 5
start_period: 5s
ports:
- "5432:5432"
networks:
- airflow-network
# --- NEW: Elasticsearch Service ---
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.1
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m # Limit RAM usage for dev
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- "9200:9200" # REST API
- "9300:9300" # Internal transport
networks:
- airflow-network
# --- NEW: Redis Stack (includes RedisGraph/FalkorDB) ---
redis-stack:
image: redis/redis-stack:latest
volumes:
- redis-stack-data:/data
ports:
- "6379:6379" # Redis port
- "8001:8001" # RedisInsight UI
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
retries: 5
start_period: 5s
networks:
- airflow-network
airflow-init:
<<: *airflow-common
entrypoint: /bin/bash
command:
- -c
- |
mkdir -p /opt/airflow/logs /opt/airflow/dags /opt/airflow/plugins
airflow db migrate
depends_on:
postgres:
condition: service_healthy
airflow-webserver:
<<: *airflow-common
command: airflow api-server
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
airflow-init:
condition: service_completed_successfully
airflow-scheduler:
<<: *airflow-common
command: airflow scheduler
healthcheck:
test: ["CMD", "airflow", "jobs", "check", "--job-type", "SchedulerJob", "--hostname", "$${HOSTNAME}"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
airflow-init:
condition: service_completed_successfully
airflow-triggerer:
<<: *airflow-common
command: airflow triggerer
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
airflow-init:
condition: service_completed_successfully
airflow-dag-processor:
<<: *airflow-common
command: airflow dag-processor
healthcheck:
test: [ "CMD", "airflow", "jobs", "check", "--job-type", "DagProcessorJob", "--hostname", "$${HOSTNAME}" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
depends_on:
airflow-init:
condition: service_completed_successfully
volumes:
postgres-db-volume:
elasticsearch-data: # <-- New volume for Elasticsearch
redis-stack-data:
networks:
airflow-network:
driver: bridge