Add Dockerfile

And a work in progress docker-compose.yml
This commit is contained in:
ViViDboarder 2019-03-30 20:03:46 -07:00
parent c06d23b836
commit d373a99211
3 changed files with 38 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
README.md
target/

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM rust:1.33
WORKDIR /usr/src/myapp
COPY . .
RUN cargo install --path .
CMD ["bitwarden_rs_ldap"]

28
docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
version: '3'
services:
ldap_sync:
build: .
bitwarden:
image: mprasil/bitwarden_rs
ldap:
image: osixia/openldap
ports:
- 389:389
- 636:636
volumes:
- /var/lib/ldap
- /etc/ldap/slapd.d
environment:
LDAP_READONLY_USER: 'true'
LDAP_READONLY_USER_USERNAME: readonly
LDAP_READONLY_USER_PASSWORD: readonly
ldap_admin:
image: osixia/phpldapadmin
ports:
- 8001:80
environment:
PHPLDAPADMIN_HTTPS: 'false'
PHPLDAPADMIN_LDAP_HOSTS: ldap