blob: 13d480bb66ddd26d7a6252903781572ca81f2b99 [file] [log] [blame]
Illyoung Choid1e4f5d2019-07-22 16:49:20 -07001# Copyright Matthieu "Puckel_" Roisil (https://github.com/puckel)
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# this file is copied from following link
16# https://github.com/puckel/docker-airflow/blob/master/docker-compose-LocalExecutor.yml
17
18version: '2.1'
19services:
20 postgres:
21 image: postgres:9.6
22 environment:
23 - POSTGRES_USER=airflow
24 - POSTGRES_PASSWORD=airflow
25 - POSTGRES_DB=airflow
26
27 webserver:
28 image: opencord/cord-workflow-airflow
29 restart: always
30 depends_on:
31 - postgres
32 environment:
33 - LOAD_EX=n
34 - EXECUTOR=Local
35 volumes:
36 - ./dags:/usr/local/airflow/dags
37 ports:
38 - "8080:8080"
39 command: webserver
40 healthcheck:
41 test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
42 interval: 30s
43 timeout: 30s
44 retries: 3