You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/17 19:04:30 UTC

[GitHub] [airflow] jagusztinl commented on issue #14856: ModuleNotFoundError: No module named 'airflow' when docker-compose up airflow-init

jagusztinl commented on issue #14856:
URL: https://github.com/apache/airflow/issues/14856#issuecomment-801336330


   Bitnami created a working verison, stable verison is unusable:
   version: '2'
   
   services:
     postgresql:
       image: 'docker.io/bitnami/postgresql:10'
       volumes:
         - 'postgresql_data:/bitnami/postgresql'
       environment:
         - POSTGRESQL_DATABASE=bitnami_airflow
         - POSTGRESQL_USERNAME=bn_airflow
         - POSTGRESQL_PASSWORD=bitnami1
         - ALLOW_EMPTY_PASSWORD=yes
     redis:
       image: docker.io/bitnami/redis:6.0
       volumes:
         - 'redis_data:/bitnami'
       environment:
         - ALLOW_EMPTY_PASSWORD=yes
     airflow-scheduler:
       # TODO: to be reverted to use proper registry/distro on T39501
       # image: docker.io/bitnami/airflow-scheduler:2-debian-10
       image: bitnami/airflow-scheduler:2
       environment:
         - AIRFLOW_DATABASE_NAME=bitnami_airflow
         - AIRFLOW_DATABASE_USERNAME=bn_airflow
         - AIRFLOW_DATABASE_PASSWORD=bitnami1
         - AIRFLOW_EXECUTOR=CeleryExecutor
       volumes:
         - airflow_scheduler_data:/bitnami
     airflow-worker:
       # TODO: to be reverted to use proper registry/distro on T39501
       # image: docker.io/bitnami/airflow-worker:2-debian-10
       image: bitnami/airflow-worker:2
       environment:
         - AIRFLOW_DATABASE_NAME=bitnami_airflow
         - AIRFLOW_DATABASE_USERNAME=bn_airflow
         - AIRFLOW_DATABASE_PASSWORD=bitnami1
         - AIRFLOW_EXECUTOR=CeleryExecutor
       volumes:
         - airflow_worker_data:/bitnami
     airflow:
       image: docker.io/bitnami/airflow:2-debian-10
       environment:
         - AIRFLOW_DATABASE_NAME=bitnami_airflow
         - AIRFLOW_DATABASE_USERNAME=bn_airflow
         - AIRFLOW_DATABASE_PASSWORD=bitnami1
         - AIRFLOW_EXECUTOR=CeleryExecutor
       ports:
         - '8080:8080'
       volumes:
         - airflow_data:/bitnami
   volumes:
     airflow_scheduler_data:
       driver: local
     airflow_worker_data:
       driver: local
     airflow_data:
       driver: local
     postgresql_data:
       driver: local
     redis_data:
       driver: local
   


----------------------------------------------------------------
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:
users@infra.apache.org