SHARE
TWEET

Untitled

a guest Mar 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ALL environment variables has to be pass to a .env file
  2. # Search my repo DUCK for a complete set of platforms.
  3.  
  4. version: '3.7'
  5.  
  6. services:
  7.  
  8.   postgresql:
  9.     image: postgres
  10.     container_name: postgresql
  11.     restart: always
  12.     environment:
  13.       - POSTGRES_USER=airflow
  14.       - POSTGRES_PASSWORD=airflow
  15.       - POSTGRES_DB=airflow
  16.     ports:
  17.       - "5432:5432"
  18.     networks:
  19.       - duck
  20.  
  21.   postgresql-adminer:
  22.     image: adminer
  23.     container_name: postgresql-adminer
  24.     restart: always
  25.     ports:
  26.       - "8085:8080"
  27.     networks:
  28.       - duck
  29.  
  30.   superset:
  31.     image: amancevice/superset
  32.     container_name: superset
  33.     restart: always
  34.     depends_on:
  35.       - postgresql
  36.     ports:
  37.       - "8087:8088"
  38.     networks:
  39.       - duck
  40.  
  41.   airflow:
  42.     image: apache/airflow
  43.     container_name: airflow
  44.     restart: always
  45.     environment:
  46.       - AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgresql:5432/airflow
  47.       - EXECUTOR=Local
  48.     depends_on:
  49.       - postgresql
  50.     command: initdb
  51.     networks:
  52.       - duck
  53.  
  54.   airflow-webserver:
  55.     image: apache/airflow
  56.     container_name: airflow-webserver
  57.     restart: always
  58.     environment:
  59.       - AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgresql:5432/airflow
  60.       - EXECUTOR=Celery
  61.     depends_on:
  62.       - airflow
  63.     ports:
  64.       - "8080:8080"
  65.     command: webserver
  66.     networks:
  67.       - duck
  68.  
  69.   airflow-flower:
  70.     image: apache/airflow
  71.     container_name: airflow-flower
  72.     restart: always
  73.     depends_on:
  74.       - postgresql
  75.     environment:
  76.       - EXECUTOR=Celery
  77.     ports:
  78.       - "5555:5555"
  79.     command: flower --basic_auth=user1:password1
  80.     networks:
  81.       - duck
  82.  
  83.   airflow-scheduler:
  84.     image: apache/airflow
  85.     container_name: airflow-scheduler
  86.     restart: always
  87.     environment:
  88.       - EXECUTOR=Celery
  89.     depends_on:
  90.       - airflow-webserver
  91.     command: scheduler
  92.     networks:
  93.       - duck
  94.  
  95.   airflow-worker:
  96.     image: apache/airflow
  97.     container_name: airflow-worker
  98.     restart: always
  99.     environment:
  100.       - EXECUTOR=Celery
  101.     depends_on:
  102.       - airflow-scheduler
  103.     command: worker
  104.     networks:
  105.       - duck
  106.  
  107. networks:
  108.   duck:
  109.     driver: bridge
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