12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- version: '2.2'
- networks:
- airflow_network:
- driver: bridge
- services:
- airflow_db:
- image: postgres:latest
- env_file:
- - /home/igf/airflow_test/secrets/airflow_db_env
- ports:
- - "5433:5432"
- volumes:
- - /home/igf/airflow_test/postgres_airflow_db:/var/lib/postgresql/data:rw
- container_name: airflow_db
- networks:
- - airflow_network
- airflow_results_db:
- image: postgres:latest
- env_file:
- - /home/igf/airflow_test/secrets/airflow_results_db_env
- ports:
- - "5434:5432"
- volumes:
- - /home/igf/airflow_test/postgres_airflow_results_db:/var/lib/postgresql/data:rw
- container_name: airflow_results_db
- networks:
- - airflow_network
- redis-server:
- image: redis:latest
- ports:
- - "6379:6379"
- volumes:
- - /home/igf/airflow_test/secrets/redis.conf:/usr/local/etc/redis/redis.conf:ro
- - /home/igf/airflow_test/redis_airflow_data:/data:rw
- container_name: redis-server
- command: redis-server /usr/local/etc/redis/redis.conf --appendonly yes
- networks:
- - airflow_network
- airflow_initdb:
- image: apache/airflow:1.10.12
- env_file:
- - /home/igf/airflow_test/secrets/airflow_env
- links:
- - airflow_db
- - airflow_results_db
- - redis-server
- volumes:
- - /home/igf/airflow_test/logs:/rds/general/user/igf/ephemeral/airflow_logs/logs:rw
- - /home/igf/airflow_test/github/igf-airflow-hpc:/rds/general/user/igf/home/data2/airflow_test/github/igf-airflow-hpc:ro
- - /home/igf/airflow_test/plugin:/rds/general/user/igf/home/data2/airflow_test/plugin:ro
- depends_on:
- - airflow_db
- - airflow_results_db
- - redis-server
- command: initdb
- container_name: airflow_initdb
- networks:
- - airflow_network
|