This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
forked from rkhozinov/bitnami-docker-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ldap.yml
87 lines (85 loc) · 2.56 KB
/
docker-compose-ldap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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 T39132
# 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 T39132
# 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_LDAP_ENABLE=yes
- AIRFLOW_LDAP_URI=ldap://openldap:1389
- AIRFLOW_LDAP_SEARCH=dc=example,dc=org
- AIRFLOW_LDAP_BIND_USER=cn=admin,dc=example,dc=org
- AIRFLOW_LDAP_BIND_PASSWORD=adminpassword
- AIRFLOW_LDAP_UID_FIELD=uid
- AIRFLOW_LDAP_USE_TLS=False
- AIRFLOW_USER_REGISTRATION_ROLE=Public
- AIRFLOW_DATABASE_NAME=bitnami_airflow
- AIRFLOW_DATABASE_USERNAME=bn_airflow
- AIRFLOW_DATABASE_PASSWORD=bitnami1
- AIRFLOW_EXECUTOR=CeleryExecutor
- AIRFLOW_PASSWORD=bitnami123
- AIRFLOW_USERNAME=customuser
ports:
- '8080:8080'
volumes:
- airflow_data:/bitnami
openldap:
image: 'docker.io/bitnami/openldap:latest'
ports:
- '1389:1389'
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_USERS=customuser
- LDAP_PASSWORDS=custompassword
volumes:
- 'openldap_data:/bitnami/openldap'
volumes:
airflow_scheduler_data:
driver: local
airflow_worker_data:
driver: local
airflow_data:
driver: local
postgresql_data:
driver: local
redis_data:
driver: local
openldap_data:
driver: local