first_run.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: '2.2'
  2. networks:
  3. airflow_network:
  4. driver: bridge
  5. services:
  6. airflow_db:
  7. image: postgres:latest
  8. env_file:
  9. - /home/igf/airflow_test/secrets/airflow_db_env
  10. ports:
  11. - "5433:5432"
  12. volumes:
  13. - /home/igf/airflow_test/postgres_airflow_db:/var/lib/postgresql/data:rw
  14. container_name: airflow_db
  15. networks:
  16. - airflow_network
  17. airflow_results_db:
  18. image: postgres:latest
  19. env_file:
  20. - /home/igf/airflow_test/secrets/airflow_results_db_env
  21. ports:
  22. - "5434:5432"
  23. volumes:
  24. - /home/igf/airflow_test/postgres_airflow_results_db:/var/lib/postgresql/data:rw
  25. container_name: airflow_results_db
  26. networks:
  27. - airflow_network
  28. redis-server:
  29. image: redis:latest
  30. ports:
  31. - "6379:6379"
  32. volumes:
  33. - /home/igf/airflow_test/secrets/redis.conf:/usr/local/etc/redis/redis.conf:ro
  34. - /home/igf/airflow_test/redis_airflow_data:/data:rw
  35. container_name: redis-server
  36. command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes
  37. networks:
  38. - airflow_network
  39. airflow_initdb:
  40. image: apache/airflow:1.10.12
  41. env_file:
  42. - /home/igf/airflow_test/secrets/airflow_env
  43. links:
  44. - airflow_db
  45. - airflow_results_db
  46. - redis-server
  47. volumes:
  48. - /home/igf/airflow_test/logs:/rds/general/user/igf/ephemeral/airflow_logs/logs:rw
  49. - /home/igf/airflow_test/github/igf-airflow-hpc:/rds/general/user/igf/home/data2/airflow_test/github/igf-airflow-hpc:ro
  50. - /home/igf/airflow_test/plugin:/rds/general/user/igf/home/data2/airflow_test/plugin:ro
  51. depends_on:
  52. - airflow_db
  53. - airflow_results_db
  54. - redis-server
  55. command: initdb
  56. container_name: airflow_initdb
  57. networks:
  58. - airflow_network