rework compose example
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
211d6e73fa
commit
83241ccb58
51
README.md
51
README.md
@ -14,56 +14,7 @@ This is a rootless custom Docker image for [bitwarden_rs_ldap](https://github.co
|
||||
|
||||
### Docker Compose
|
||||
|
||||
```Yaml
|
||||
---
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres
|
||||
environment:
|
||||
POSTGRES_DB: bitwarden
|
||||
POSTGRES_PASSWORD: pass
|
||||
POSTGRES_USER: user
|
||||
|
||||
ldap:
|
||||
container_name: ldap
|
||||
image: osixia/openldap
|
||||
|
||||
bitwardenrs:
|
||||
container_name: bitwardenrs_server
|
||||
image: thegeeklab/bitwardenrs:latest
|
||||
depends_on:
|
||||
- postgres
|
||||
ports:
|
||||
- "80:8080"
|
||||
volumes:
|
||||
- data:/app/data
|
||||
environment:
|
||||
BITWARDENRS_DATABASE_URL: postgresql://user:pass@postgres:5432/bitwarden
|
||||
BITWARDENRS_ADMIN_TOKEN: my_secure_token
|
||||
|
||||
bitwardenrs_ldap:
|
||||
container_name: ldap_sync
|
||||
restart: always
|
||||
image: thegeeklab/bitwardenrs_ldap:latest
|
||||
depends_on:
|
||||
- bitwardenrs
|
||||
- ldap
|
||||
environment:
|
||||
BITWARDENRS_LDAP_BITWARDEN_URL: http://bitwardenrs_server:8080
|
||||
BITWARDENRS_LDAP_BITWARDEN_ADMIN_TOKEN: my_secure_token
|
||||
BITWARDENRS_LDAP_HOST: ldap
|
||||
BITWARDENRS_LDAP_SSL: "False"
|
||||
BITWARDENRS_LDAP_BIND_DN: "cn=admin,dc=example,dc=org"
|
||||
BITWARDENRS_LDAP_SEARCH_BASE_DN: "dc=example,dc=org"
|
||||
BITWARDENRS_LDAP_BIND_PASSWORD: admin
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver: local
|
||||
```
|
||||
Please take a look at the [example](https://gitea.rknet.org/docker/bitwardenrs_ldap/src/branch/main/docker-compose.yml) compose file from the git repo.
|
||||
|
||||
## Configuration
|
||||
|
||||
|
@ -16,7 +16,7 @@ services:
|
||||
|
||||
bitwardenrs:
|
||||
container_name: bitwardenrs_server
|
||||
image: thegeeklab/bitwardenrs:latest
|
||||
image: thegeeklab/bitwardenrs
|
||||
depends_on:
|
||||
- postgres
|
||||
ports:
|
||||
@ -30,7 +30,7 @@ services:
|
||||
bitwardenrs_ldap:
|
||||
container_name: ldap_sync
|
||||
restart: always
|
||||
image: thegeeklab/bitwardenrs_ldap:latest
|
||||
image: thegeeklab/bitwardenrs_ldap
|
||||
depends_on:
|
||||
- bitwardenrs
|
||||
- ldap
|
||||
|
Reference in New Issue
Block a user