-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.23 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
services:
postgres:
image: postgres
environment:
POSTGRES_USER: airflow
POSTGRES_PASSWORD: airflow
POSTGRES_DB: airflow
volumes:
- postgresdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "airflow" ]
interval: 10s
retries: 5
restart: on-failure
mongo:
image: mongo
volumes:
- mongodata:/data/db
- mongoconfig:/data/configdb
healthcheck:
test: [ "CMD", "mongo", "-eval", "'db.runCommand(\"ping\").ok'", "--quiet" ]
interval: 10s
retries: 5
restart: on-failure
airflow:
image: apache/airflow
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
_AIRFLOW_WWW_USER_USERNAME: memelord
_AIRFLOW_WWW_USER_PASSWORD: memelord
volumes:
- ./dags:/opt/airflow/dags
- //var/run/docker.sock://var/run/docker.sock
- ./scripts/entrypoint.sh:/entrypoint.sh
depends_on:
postgres:
condition: service_healthy
mongo:
condition: service_healthy
ports:
- "8080:8080"
entrypoint: /entrypoint.sh
volumes:
mongodata:
mongoconfig:
postgresdata: