2020-11-06 17:38:14 +00:00
---
version : "3"
services :
ldap :
image : osixia/openldap
environment :
- LDAP_DOMAIN=mydomain.tld
volumes :
2022-11-15 13:13:23 +00:00
- ./ldif/memberof-config.ldif:/container/service/slapd/assets/config/bootstrap/ldif/03-memberOf.ldif:ro
2023-05-04 15:10:49 +00:00
- ./ldif/refint-config.ldif:/container/service/slapd/assets/config/bootstrap/ldif/04-refint.ldif:ro
2022-03-18 16:44:58 +00:00
# memberof overlay is already present in openldap docker image but only for groupOfUniqueNames. We need to overwrite it (until canaille can handle groupOfUniqueNames).
# https://github.com/osixia/docker-openldap/blob/master/image/service/slapd/assets/config/bootstrap/ldif/03-memberOf.ldif
2023-04-08 18:09:52 +00:00
- ../canaille/backends/ldap/schemas/oauth2-openldap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/40-oauth2.ldif:ro
2022-12-06 17:17:32 +00:00
- ./ldif/bootstrap-users-tree.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-bootstrap-users-tree.ldif:ro
- ./ldif/bootstrap-oidc-tree.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-bootstrap-oidc-tree.ldif:ro
- ./ldif/bootstrap-users.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/60-bootstrap-users.ldif:ro
- ./ldif/bootstrap-oidc.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/70-bootstrap-oidc.ldif:ro
2020-11-06 17:38:14 +00:00
command : --copy-service --loglevel debug
ports :
- 5389 : 389
- 5636 : 636
2022-03-18 16:44:58 +00:00
canaille :
depends_on :
- ldap
build :
context : ..
dockerfile : demo/Dockerfile-canaille
environment :
- AUTHLIB_INSECURE_TRANSPORT=1
2022-11-01 11:56:07 +00:00
- FLASK_DEBUG=1
2022-03-18 16:44:58 +00:00
- CONFIG=/opt/canaille/conf/canaille.toml
- FLASK_APP=canaille
volumes :
- ../canaille:/opt/canaille/canaille
- ./conf-docker:/opt/canaille/conf
ports :
- 5000 : 5000
client1 :
depends_on :
- canaille
build :
context : .
dockerfile : Dockerfile-client
environment :
2022-11-01 11:56:07 +00:00
- FLASK_DEBUG=1
2022-03-18 16:44:58 +00:00
- CONFIG=/opt/client/conf/client1.cfg
- FLASK_APP=client
volumes :
- ./client:/opt/client/client
- ./conf-docker:/opt/client/conf
- ../canaille/static:/opt/canaille/static
command : --port=5001
ports :
- 5001 : 5001
client2 :
depends_on :
- canaille
build :
context : .
dockerfile : Dockerfile-client
environment :
2022-11-01 11:56:07 +00:00
- FLASK_DEBUG=1
2022-03-18 16:44:58 +00:00
- CONFIG=/opt/client/conf/client2.cfg
- FLASK_APP=client
volumes :
- ./client:/opt/client/client
- ./conf-docker:/opt/client/conf
- ../canaille/static:/opt/canaille/static
command : --port=5002
ports :
- 5002 : 5002