This repository has been archived on 2024-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
vaultwarden-ldap/docker-compose.yml
Robert Kaussow dbf265e0a8
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore: upstream project was renamed to vaultwarden (#29)
Co-authored-by: Robert Kaussow <mail@geeklabor.de>
Reviewed-on: docker/vaultwarden-ldap#29
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-05-15 15:01:36 +02:00

49 lines
1.1 KiB
YAML

---
version: "3"
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: vaultwarden
POSTGRES_PASSWORD: pass
POSTGRES_USER: user
ldap:
container_name: ldap
image: osixia/openldap
vaultwarden:
container_name: vaultwarden_server
image: thegeeklab/vaultwarden
depends_on:
- postgres
ports:
- "80:8080"
volumes:
- data:/app/data
environment:
VAULTWARDEN_DATABASE_URL: postgresql://user:pass@postgres:5432/vaultwarden
VAULTWARDEN_ADMIN_TOKEN: my_secure_token
vaultwarden-ldap:
container_name: ldap_sync
restart: always
image: thegeeklab/vaultwarden-ldap
depends_on:
- vaultwarden
- ldap
environment:
VAULTWARDEN_LDAP_VAULTWARDEN_URL: http://vaultwarden_server:8080
VAULTWARDEN_LDAP_VAULTWARDEN_ADMIN_TOKEN: my_secure_token
VAULTWARDEN_LDAP_HOST: ldap
VAULTWARDEN_LDAP_SSL: "False"
VAULTWARDEN_LDAP_BIND_DN: "cn=admin,dc=example,dc=org"
VAULTWARDEN_LDAP_SEARCH_BASE_DN: "dc=example,dc=org"
VAULTWARDEN_LDAP_BIND_PASSWORD: admin
volumes:
data:
driver: local