forked from Morawetz/Speech-to-text-data_collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (42 loc) · 1.86 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
version: '3.7'
services:
postgres: # create postgres container
image: postgres:9.6
container_name: postgres_container
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
airflow: # create airflow container
build: './airflow_docker' # construct the container along the Dockerfile in this folder
container_name: airflow_container
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
volumes:
# mount the following local folders
- ./dags:/usr/local/airflow/dags
- ./models:/usr/local/airflow/models
- ./data:/usr/local/airflow/data
ports:
- "8000:8080" # expose port
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3
zookeeper: # create zookeeper container
image: wurstmeister/zookeeper
container_name: zookeeper_container
ports:
- "2181:2181" # expose port
mlflow: # create a MLFlow container
build: './mlflow_docker' # construct the container along the Dockerfile in this folder
container_name: mlflow_container
ports:
- "5000:5000" # expose port
command: 'mlflow server --backend-store-uri ./mlflow --host 0.0.0.0 --port 5000'