docker-compose-wells.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. version: '2.2'
  2. networks:
  3. airflow_network:
  4. driver: bridge
  5. services:
  6. airflow_scheduler:
  7. image: apache/airflow:1.10.12
  8. env_file:
  9. - /home/igf/airflow_test/secrets/airflow_env
  10. volumes:
  11. - /home/igf/airflow_test/logs:/rds/general/user/igf/ephemeral/airflow_logs/logs:rw
  12. - /home/igf/airflow_test/github/igf-airflow-hpc:/rds/general/user/igf/home/data2/airflow_test/github/igf-airflow-hpc:ro
  13. - /home/igf/airflow_test/github/data-management-python:/rds/general/user/igf/home/data2/airflow_test/github/data-management-python:ro
  14. - /home/igf/airflow_test/secrets:/rds/general/user/igf/home/data2/airflow_test/secrets:ro
  15. - /home/igf/airflow_test/plugin:/rds/general/user/igf/home/data2/airflow_test/plugin:ro
  16. restart: always
  17. command: scheduler
  18. container_name: airflow_scheduler
  19. networks:
  20. - airflow_network
  21. airflow_worker:
  22. image: apache/airflow:1.10.12
  23. depends_on:
  24. - airflow_scheduler
  25. env_file:
  26. - /home/igf/airflow_test/secrets/airflow_env
  27. ports:
  28. - "8793:8793"
  29. volumes:
  30. - /home/igf/airflow_test/logs:/rds/general/user/igf/ephemeral/airflow_logs/logs:rw
  31. - /home/igf/airflow_test/github/igf-airflow-hpc:/rds/general/user/igf/home/data2/airflow_test/github/igf-airflow-hpc:ro
  32. - /home/igf/airflow_test/github/data-management-python:/rds/general/user/igf/home/data2/airflow_test/github/data-management-python:ro
  33. - /home/igf/airflow_test/secrets:/rds/general/user/igf/home/data2/airflow_test/secrets:ro
  34. - /home/igf/airflow_test/plugin:/rds/general/user/igf/home/data2/airflow_test/plugin:ro
  35. - /home/igf/.ssh/id_rsa:/SSH/id_rsa:ro
  36. - /data/igf:/rds/general/user/igf/ephemeral:rw
  37. restart: always
  38. command: worker -q wells,generic --celery_hostname wells
  39. container_name: airflow_worker
  40. networks:
  41. - airflow_network