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

49 lines
1.1 KiB
YAML
Raw Normal View History

2020-01-18 23:19:48 +00:00
---
2020-10-18 12:24:21 +00:00
version: "3"
2020-01-18 23:19:48 +00:00
services:
2020-02-04 08:47:39 +00:00
postgres:
2020-05-04 17:43:13 +00:00
container_name: postgres
2020-02-04 08:47:39 +00:00
image: postgres
environment:
POSTGRES_DB: vaultwarden
2020-02-04 08:47:39 +00:00
POSTGRES_PASSWORD: pass
POSTGRES_USER: user
2020-02-04 09:22:17 +00:00
ldap:
2020-05-04 17:43:13 +00:00
container_name: ldap
2020-02-04 09:22:17 +00:00
image: osixia/openldap
vaultwarden:
container_name: vaultwarden_server
image: thegeeklab/vaultwarden
2020-02-04 08:47:39 +00:00
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
2020-02-04 08:47:39 +00:00
vaultwarden-ldap:
2020-05-04 17:43:13 +00:00
container_name: ldap_sync
restart: always
image: thegeeklab/vaultwarden-ldap
2020-02-04 08:47:39 +00:00
depends_on:
- vaultwarden
2020-02-04 09:22:17 +00:00
- ldap
2020-02-04 08:47:39 +00:00
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
2020-02-04 08:47:39 +00:00
volumes:
data:
driver: local