-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (56 loc) · 1.61 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
60 lines (56 loc) · 1.61 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
version: '3.7'
services:
interface:
build: interface
ports:
- "80:5000"
hotel:
build: microservice
environment:
- HOSTNAME=hotel-service
flight:
build: microservice
environment:
- HOSTNAME=flight-service
car-rental:
build: microservice
environment:
- HOSTNAME=car-rental-service
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_PASSWORD=airflow
- POSTGRES_DB=airflow
logging:
options:
max-size: 10m
max-file: "3"
airflow:
image: puckel/docker-airflow:1.10.9
restart: always
depends_on:
- postgres
environment:
- LOAD_EX=n
- EXECUTOR=Local
- AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION=False
- AIRFLOW_CONN_INTERFACE_SERVICE=http://interface:5000/
- AIRFLOW_CONN_HOTEL_SERVICE=http://hotel/
- AIRFLOW_CONN_FLIGHT_SERVICE=http://flight/
- AIRFLOW_CONN_CAR_RENTAL_SERVICE=http://car-rental/
logging:
options:
max-size: 10m
max-file: "3"
volumes:
- ./dags:/usr/local/airflow/dags
- ./requirements.txt:/requirements.txt
ports:
- "8080:8080"
command: webserver
healthcheck:
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
interval: 30s
timeout: 30s
retries: 3