Browse Source

rework compose example

pull/4/head
Robert Kaussow 5 months ago
parent
commit
83241ccb58
Signed by: xoxys GPG Key ID: 65362AE74AF98B61
  1. 51
      README.md
  2. 4
      docker-compose.yml

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

4
docker-compose.yml

@ -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

Loading…
Cancel
Save