potiuk opened a new issue #8605:
URL: https://github.com/apache/airflow/issues/8605


   **Description**
   
   In order to use the production image we are already working on a helm chart, 
but we might want to add a production-ready docker compose that will be able to 
run airflow  installation.
   
   **Use case / motivation**
   
   For local tests/small deployments - being able to have such docker-compose 
environment would be really nice.
   
   Example Docker Compose (From 
https://apache-airflow.slack.com/archives/CQAMHKWSJ/p1587748008106000) that we 
might use as a base.
   
   ```
   version: '3'
   services:
     postgres:
       image: postgres:latest
       environment:
         - POSTGRES_USER=postgres
         - POSTGRES_PASSWORD=postgres
         - POSTGRES_DB=airflow
         - POSTGRES_PORT=5432
       ports:
         - 5432:5432
     redis:
       image: redis:latest
       ports:
         - 6379:6379
     flower:
       image: apache/airflow:1.10.10
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: flower
       ports:
         - 5555:5555
     airflow:
       image: apache/airflow:1.10.10
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: webserver
       ports:
         - 8080:8080
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
         - ./airflow-data/logs:/opt/airflow/logs
         - ./airflow-data/plugins:/opt/airflow/plugins
     airflow-scheduler:
       image: apache/airflow:1.10.10
       container_name: airflow_scheduler_cont
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: scheduler
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
         - ./airflow-data/logs:/opt/airflow/logs
         - ./airflow-data/plugins:/opt/airflow/plugins
     airflow-worker1:
       image: apache/airflow:1.10.10
       container_name: airflow_worker1_cont
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: worker
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
         - ./airflow-data/logs:/opt/airflow/logs
         - ./airflow-data/plugins:/opt/airflow/plugins
     airflow-worker2:
       image: apache/airflow:1.10.10
       container_name: airflow_worker2_cont
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: worker
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
         - ./airflow-data/logs:/opt/airflow/logs
         - ./airflow-data/plugins:/opt/airflow/plugins
     airflow-worker3:
       image: apache/airflow:1.10.10
       container_name: airflow_worker3_cont
       environment:
         - AIRFLOW__CORE__EXECUTOR=CeleryExecutor
         - AIRFLOW__CELERY__BROKER_URL=redis://:@redis:6379/0
         - 
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://postgres:postgres@postgres:5432/airflow
         - 
AIRFLOW__CORE__FERNET_KEY=FB0o_zt4e3Ziq3LdUUO7F2Z95cvFFx16hU8jTeR1ASM=
         - AIRFLOW__CORE__LOAD_EXAMPLES=False
         - AIRFLOW__WEBSERVER__RBAC=True
       command: worker
       volumes:
         - ./airflow-data/dags:/opt/airflow/dags
         - ./airflow-data/logs:/opt/airflow/logs
         - ./airflow-data/plugins:/opt/airflow/plugins
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to