mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
|
version: '2.1'
|
||
|
|
||
|
services:
|
||
|
|
||
|
redis:
|
||
|
image: redis:alpine
|
||
|
command: --save 900 1
|
||
|
ports:
|
||
|
- "6379:6379"
|
||
|
volumes:
|
||
|
- ./data/redis:/data
|
||
|
restart: always
|
||
|
|
||
|
postgres:
|
||
|
image: postgres:alpine
|
||
|
ports:
|
||
|
- "5432:5432"
|
||
|
volumes:
|
||
|
- ./data/postgres:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
- POSTGRES_USER=airflow
|
||
|
- POSTGRES_PASSWORD=airflow
|
||
|
- POSTGRES_DB=airflow
|
||
|
restart: always
|
||
|
|
||
|
webserver:
|
||
|
image: puckel/docker-airflow:1.9.0-4
|
||
|
command: webserver
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
|
volumes:
|
||
|
- ./data/airflow/dags:/usr/local/airflow/dags
|
||
|
- ./data/airflow/plugins:/usr/local/airflow/plugins
|
||
|
environment:
|
||
|
- LOAD_EX=y
|
||
|
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
|
||
|
- EXECUTOR=Celery
|
||
|
- AIRFLOW__WEBSERVER__BASE_URL=http://1.2.3.4:8080
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
- redis
|
||
|
healthcheck:
|
||
|
test: ["CMD-SHELL", "[ -f /usr/local/airflow/airflow-webserver.pid ]"]
|
||
|
interval: 30s
|
||
|
timeout: 30s
|
||
|
retries: 3
|
||
|
restart: always
|
||
|
|
||
|
flower:
|
||
|
image: puckel/docker-airflow:1.9.0-4
|
||
|
command: flower
|
||
|
ports:
|
||
|
- "5555:5555"
|
||
|
environment:
|
||
|
- EXECUTOR=Celery
|
||
|
depends_on:
|
||
|
- redis
|
||
|
restart: always
|
||
|
|
||
|
scheduler:
|
||
|
image: puckel/docker-airflow:1.9.0-4
|
||
|
command: scheduler
|
||
|
volumes:
|
||
|
- ./data/airflow/dags:/usr/local/airflow/dags
|
||
|
- ./data/airflow/plugins:/usr/local/airflow/plugins
|
||
|
environment:
|
||
|
- LOAD_EX=y
|
||
|
- FERNET_KEY=46BKJoQYlPPOexq0OhDZnIlNepKFf87WFwLbfzqDDho=
|
||
|
- EXECUTOR=Celery
|
||
|
depends_on:
|
||
|
- webserver
|
||
|
restart: always
|