Advertisement
Guest User

Untitled

a guest
Jun 11th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. version: '3'
  2. services:
  3. postgres:
  4. image: postgres:9.6
  5. environment:
  6. - POSTGRES_USER=airflow
  7. - POSTGRES_PASSWORD=airflow
  8. - POSTGRES_DB=airflow
  9. ports:
  10. - "5432:5432"
  11. webserver:
  12. image: puckel/docker-airflow:1.10.1
  13. build:
  14. context: https://github.com/puckel/docker-airflow.git#1.10.1
  15. dockerfile: Dockerfile
  16. args:
  17. AIRFLOW_DEPS: gcp_api,s3
  18. restart: always
  19. depends_on:
  20. - postgres
  21. environment:
  22. - LOAD_EX=n
  23. - EXECUTOR=Local
  24. - FERNET_KEY=jsDPRErfv8Z_eVTnGfF8ywd19j4pyqE3NpdUBA_oRTo=
  25. volumes:
  26. - ./dags:/usr/local/airflow/dags
  27. # Uncomment to include custom plugins
  28. # - ./plugins:/usr/local/airflow/plugins
  29. ports:
  30. - "8080:8080"
  31. command: webserver
  32. healthcheck:
  33. test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
  34. interval: 30s
  35. timeout: 30s
  36. retries: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement