forked from re-data/re-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (80 loc) · 2.25 KB
/
docker-compose.yml
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
version: "3.8"
services:
grafana:
image: grafana/grafana:7.3.0
ports:
- "3000:${GRAFANA_WEB_PORT}"
env_file:
- .env
tty: true
redata_postgres:
image: timescale/timescaledb:latest-pg12
env_file:
- .env
ports:
- "${REDATA_METRICS_DATABASE_EXT_PORT}:5432"
environment:
- POSTGRES_USER=${REDATA_METRICS_DATABASE_USER}
- POSTGRES_PASSWORD=${REDATA_METRICS_DATABASE_PASSWORD}
- POSTGRES_DB=${REDATA_METRICS_DATABASE_NAME}
airflow_postgres:
image: postgres:12
env_file:
- .env
ports:
- "${_AIRFLOW_CONN_METADATA_DB_EXT_PORT}:5432"
environment:
- POSTGRES_USER=${_AIRFLOW_CONN_METADATA_DB_USER}
- POSTGRES_PASSWORD=${_AIRFLOW_CONN_METADATA_DB_PASSWORD}
- POSTGRES_DB=${_AIRFLOW_CONN_METADATA_DB_NAME}
redata_backend:
image: redatateam/redata:0.0.10-alfa
restart: always
depends_on:
- airflow_postgres
- redata_postgres
- webserver_airflow
env_file:
- .env
ports:
- "8793:8793"
volumes:
- ${REDATA_BIGQUERY_KEY_FILE:-./redata/deployment/empty.json}:${REDATA_DEFAULT_BIGQUERY_DOCKER_CREDS_FILE_PATH}
- airflowlogs:${AIRFLOW__LOGGING__BASE_LOG_FOLDER}
entrypoint: /usr/local/redata/scripts/redata-start.sh
webserver_airflow:
image: redatateam/redata:0.0.10-alfa
hostname: webserver
restart: always
depends_on:
- airflow_postgres
- redata_postgres
env_file:
- .env
ports:
- "8080:8080"
volumes:
- airflowlogs:${AIRFLOW__LOGGING__BASE_LOG_FOLDER}
entrypoint: /usr/local/redata/scripts/airflow-entrypoint.sh
healthcheck:
test: ["CMD-SHELL", "[ -f /opt/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
redata_ui:
image: redatateam/redata:0.0.10-alfa
hostname: redataui
restart: always
depends_on:
- redata_postgres
env_file:
- .env
ports:
- "${REDATA_ADMIN_PORT}:${REDATA_ADMIN_PORT}"
entrypoint: /usr/local/redata/scripts/redata-ui.sh
volumes:
- ${REDATA_BIGQUERY_KEY_FILE:-./redata/deployment/empty.json}:${REDATA_DEFAULT_BIGQUERY_DOCKER_CREDS_FILE_PATH}
environment:
- PYTHONPATH=/usr/local/redata
volumes:
airflowlogs: {}