SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2.1'
  2. services:
  3.     redis:
  4.         image: 'redis:3.2.7'
  5.         # command: redis-server --requirepass redispass
  6.  
  7.     postgres:
  8.         image: postgres:9.6
  9.         environment:
  10.             - POSTGRES_USER=airflow
  11.             - POSTGRES_PASSWORD=airflow
  12.             - POSTGRES_DB=airflow
  13.         # Uncomment these lines to persist data on the local filesystem.
  14.         #     - PGDATA=/var/lib/postgresql/data/pgdata
  15.         # volumes:
  16.         #     - ./pgdata:/var/lib/postgresql/data/pgdata
  17.  
  18.     webserver:
  19.         image: puckel/docker-airflow:latest
  20.         restart: always
  21.         depends_on:
  22.             - postgres
  23.             - redis
  24.         environment:
  25.             - LOAD_EX=n
  26.             - FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
  27.             - EXECUTOR=Celery
  28.             # - POSTGRES_USER=airflow
  29.             # - POSTGRES_PASSWORD=airflow
  30.             # - POSTGRES_DB=airflow
  31.             # - REDIS_PASSWORD=redispass
  32.         volumes:
  33.             - ./dags:/usr/local/airflow/dags
  34.             - ./data:/usr/local/airflow/data
  35.             # Uncomment to include custom plugins
  36.             # - ./plugins:/usr/local/airflow/plugins
  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
  45.  
  46.     flower:
  47.         image: puckel/docker-airflow:latest
  48.         restart: always
  49.         depends_on:
  50.             - redis
  51.         environment:
  52.             - EXECUTOR=Celery
  53.             # - REDIS_PASSWORD=redispass
  54.         ports:
  55.             - "5555:5555"
  56.         command: flower
  57.  
  58.     scheduler:
  59.         image: puckel/docker-airflow:latest
  60.         restart: always
  61.         depends_on:
  62.             - webserver
  63.         volumes:
  64.             - ./dags:/usr/local/airflow/dags
  65.             - ./data:/usr/local/airflow/data
  66.             # Uncomment to include custom plugins
  67.             # - ./plugins:/usr/local/airflow/plugins
  68.         environment:
  69.             - LOAD_EX=n
  70.             - FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
  71.             - EXECUTOR=Celery
  72.             # - POSTGRES_USER=airflow
  73.             # - POSTGRES_PASSWORD=airflow
  74.             # - POSTGRES_DB=airflow
  75.             # - REDIS_PASSWORD=redispass
  76.         command: scheduler
  77.  
  78.     worker:
  79.         image: puckel/docker-airflow:latest
  80.         restart: always
  81.         depends_on:
  82.             - scheduler
  83.         volumes:
  84.             - ./dags:/usr/local/airflow/dags
  85.             - ./data:/usr/local/airflow/data
  86.             # Uncomment to include custom plugins
  87.             # - ./plugins:/usr/local/airflow/plugins
  88.         environment:
  89.             - FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
  90.             - EXECUTOR=Celery
  91.             # - POSTGRES_USER=airflow
  92.             # - POSTGRES_PASSWORD=airflow
  93.             # - POSTGRES_DB=airflow
  94.             # - REDIS_PASSWORD=redispass
  95.         command: worker
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top