mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 08:15:52 +03:00
[GH-ISSUE #63] Need help with docker compose #28
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andy47 on GitHub (Oct 20, 2021).
Original GitHub issue: https://github.com/lldap/lldap/issues/63
Hi, I'm trying to work out what I'm doing wrong. I'm trying to run under docker using a slightly modified version of the example docker-compose.yml file from the project readme. The only real change is that I'm trying to map
datato a sub-directory of the working directory that holds my docker-compose file so that I can define my own environment variable settings. But when I rundocker-compose upI get this traceback;So it looks like the container can't write to my
lldatadirectory but I can't figure out why. Can anyone help out with suggestions?My
docker-compose.ymlfile is as follows. I've just starred out the secret and password valuesservices:@andy47 commented on GitHub (Oct 20, 2021):
And as soon as I posted this issue I figured out what I was doing wrong. I had copied
lldap_config.docker_template.tomlto mylldatadirectory and renamed it tolldap_config.tomlbut hadn't updated the entries that referred to the\datadirectory so on startup the code was trying to write to non-existent files.@andy47 commented on GitHub (Oct 20, 2021):
Sorry, I spoke too soon. I was expecting the database and associated files to be written to my
lldatafolder but nothing is appearing there. The sample docker-compose file creates a named volume but I can't then figure out how to get mylldap_config.tomlfile into that volume. So, my question is how do I mount the container/datato a host folder so that on startup lldap will read mylldap_config.tomlfile. Thanks in advance for any assistance.@nitnelave commented on GitHub (Oct 20, 2021):
I just pushed a freshly baked new docker image just for you, with slightly better diagnostics when starting the server, please try it out.
With your docker-compose file above, you should have in your
lldatafolder thelldap_config.tomlfile. When the server starts, it will create the users.db file next to it.Note that env variables should be prefixed with
LLDAP_, I'll correct the README example.@nitnelave commented on GitHub (Oct 28, 2021):
@andy47 Did you manage to get it working?