-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
74 lines (69 loc) · 1.73 KB
/
docker-compose.yaml
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
services:
# PostgreSQL
postgresql:
image: postgis/postgis:16-3.5
environment:
POSTGRES_USER: rdwatch
POSTGRES_DB: rdwatch
POSTGRES_PASSWORD: secretkey
volumes:
- postgresql-data:/var/lib/postgresql/data
ports:
- 5432:5432
# Redis
redis:
image: redis:latest
volumes:
- redis-data:/redis/data
ports:
- 6379:6379
minio:
image: minio/minio:latest
# When run with a TTY, minio prints credentials on startup
tty: true
command: ["server", "/data", "--console-address", ":${DOCKER_MINIO_CONSOLE_PORT-9001}", "--address", ":${DOCKER_MINIO_PORT-9000}"]
volumes:
- minio-data:/data
environment:
MINIO_ROOT_USER: rdwatch
MINIO_ROOT_PASSWORD: secretkey
ports:
- ${DOCKER_MINIO_PORT-9000}:9000
- ${DOCKER_MINIO_CONSOLE_PORT-9001}:9001
# Scoring database
scoredb:
image: postgis/postgis:16-3.5
environment:
POSTGRES_USER: scoring
POSTGRES_DB: scoring
POSTGRES_PASSWORD: secretkey
volumes:
- postgresql-scoring-data:/var/lib/postgresql/data
ports:
- 5433:5432
airflow:
build:
context: dev/
dockerfile: airflow.Dockerfile
volumes:
- airflow-data:/opt/airflow
- type: bind
source: ${PWD}/dev/airflow_sample_dag.py
target: /opt/airflow/dags/airflow_sample_dag.py
environment:
AIRFLOW_HOME: "/opt/airflow/"
command: ["airflow", "standalone"]
ports:
- 8002:8080
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
volumes:
postgresql-scoring-data:
postgresql-data:
minio-data:
redis-data:
airflow-data: