2020-07-09 12:04:05 -07:00
|
|
|
---
|
2019-03-30 20:03:46 -07:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
ldap_sync:
|
2019-04-18 18:13:31 -07:00
|
|
|
build:
|
|
|
|
context: .
|
2021-06-21 13:38:36 -07:00
|
|
|
dockerfile: Dockerfile
|
2019-04-11 17:07:59 -07:00
|
|
|
volumes:
|
2020-09-28 14:58:23 -07:00
|
|
|
- ./example.config.toml:/config.toml:ro
|
2021-05-07 12:55:29 -07:00
|
|
|
# ./root.cert:/usr/src/vaultwarden_ldap/root.cert:ro
|
2019-10-02 13:02:51 -07:00
|
|
|
environment:
|
2020-09-28 14:58:23 -07:00
|
|
|
CONFIG_PATH: /config.toml
|
2019-10-02 13:02:51 -07:00
|
|
|
RUST_BACKTRACE: 1
|
2021-05-07 12:55:29 -07:00
|
|
|
depends_on:
|
|
|
|
- vaultwarden
|
|
|
|
- ldap
|
2019-04-11 17:07:59 -07:00
|
|
|
restart: always
|
2019-03-30 20:03:46 -07:00
|
|
|
|
2021-05-07 12:55:29 -07:00
|
|
|
vaultwarden:
|
|
|
|
image: vaultwarden/server
|
2019-04-11 17:07:59 -07:00
|
|
|
ports:
|
|
|
|
- 8000:80
|
|
|
|
environment:
|
|
|
|
ADMIN_TOKEN: admin
|
2019-04-18 17:15:29 -07:00
|
|
|
SIGNUPS_ALLOWED: 'false'
|
|
|
|
INVITATIONS_ALLOWED: 'true'
|
2023-01-25 16:42:21 -08:00
|
|
|
I_REALLY_WANT_VOLATILE_STORAGE: 'true'
|
2019-03-30 20:03:46 -07:00
|
|
|
|
|
|
|
ldap:
|
|
|
|
image: osixia/openldap
|
|
|
|
volumes:
|
|
|
|
- /var/lib/ldap
|
|
|
|
- /etc/ldap/slapd.d
|
|
|
|
environment:
|
|
|
|
LDAP_READONLY_USER: 'true'
|
|
|
|
LDAP_READONLY_USER_USERNAME: readonly
|
|
|
|
LDAP_READONLY_USER_PASSWORD: readonly
|
|
|
|
|
|
|
|
ldap_admin:
|
|
|
|
image: osixia/phpldapadmin
|
|
|
|
ports:
|
|
|
|
- 8001:80
|
|
|
|
environment:
|
|
|
|
PHPLDAPADMIN_HTTPS: 'false'
|
|
|
|
PHPLDAPADMIN_LDAP_HOSTS: ldap
|
2021-05-07 12:55:29 -07:00
|
|
|
depends_on:
|
|
|
|
- ldap
|