rework compose example
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-12-30 17:21:01 +01:00
parent 211d6e73fa
commit 83241ccb58
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 3 additions and 52 deletions

View File

@ -14,56 +14,7 @@ This is a rootless custom Docker image for [bitwarden_rs_ldap](https://github.co
### Docker Compose ### Docker Compose
```Yaml 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.
---
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
```
## Configuration ## Configuration

View File

@ -16,7 +16,7 @@ services:
bitwardenrs: bitwardenrs:
container_name: bitwardenrs_server container_name: bitwardenrs_server
image: thegeeklab/bitwardenrs:latest image: thegeeklab/bitwardenrs
depends_on: depends_on:
- postgres - postgres
ports: ports:
@ -30,7 +30,7 @@ services:
bitwardenrs_ldap: bitwardenrs_ldap:
container_name: ldap_sync container_name: ldap_sync
restart: always restart: always
image: thegeeklab/bitwardenrs_ldap:latest image: thegeeklab/bitwardenrs_ldap
depends_on: depends_on:
- bitwardenrs - bitwardenrs
- ldap - ldap