For working docker compose files for Airflow 1.10, see: https://github.com/apache/airflow/issues/8605#issuecomment-759469443
On Tue, May 4, 2021, 06:00 Venkat Swaminathan <[email protected]> wrote: > Hi all, > > I'm trying to create a docker-compose file for version-1 (either 1.10.14 > or 1.10.15), which is closely similar to the stable version (2.0.1 or > above). > > I copy-pasted the docker-compose file for v2. > > Then did "docker-compose up airflow-init" as described in the docs. > However I got some errors starting with, > > "[2021-05-04 03:48:17,927] {__init__.py:71} CRITICAL - Cannot import > airflow.api.auth.backend.basic_auth for API authentication due to: No > module named 'airflow.api.auth.backend.basic_auth'" > > I then removed the line, > > AIRFLOW__API__AUTH_BACKEND: 'airflow.api.auth.backend.basic_auth' > > Now it passed the airflow-init, but fails further on "docker-compose up" > > I think the relevant error is, > postgres_1 | 2021-05-04 03:04:12.397 UTC [129] ERROR: relation > "log" does not exist at character 13 > > Somehow the postgres db doesn't start normally. > > All these commands were successful for v2 though. Any help would be > appreciated. > I have to say, I'm a newbie to Airflow though. > > Regards, > Venkat. > > > > >
