-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird caching issue with PHPLDAPADMIN_LDAP_HOSTS #70
Comments
Can confirm the same. I thought it was reading configs off the volume bind, but even after removing the volume I experience the same issue. Removing the container (or renaming as mentioned) allows the |
Now that I've gathered more experience with Docker and Compose over the last few months, I actually think that this is a normal limitation in Docker Compose and rebuilding the container is necessary to reflect changes in
If anyone can confirm this, I'll close the issue. |
I was exclusively using the While your suggestion sounds good, the admin container was rebuilt each time the I can poke around at it a little more to see if there is an edge case I may have been experiencing. Thanks for your reply! |
I have just run into this myself! I have also found the answer 😃! The issue is due to either this line in the What happens is when the container is created, an anonymous (unnamed) volume is created to persist all of the phpLDAPadmin data. The In my own compose file, I have given a name to this volume so I know it is there, and will just remove the volume as needed to refresh my config. I have opened #83 to make a note in the project README, instead of making an attempt at some sort of bug fix. I am not familiar with the project nor dockerfiles to provide an ideal solution. |
Well discovered @cskwrd! As far as a fix, I believe it would be closer to a standard if the project didn't create anonymous volumes but rather suggested a volume map to the host filesystem; seeing as this is meant to be a dockerized solution. Could be as simple as removing that line from the
or:
I never had success using this project so I might leave that to someone else to test and PR if this is a valid solution. |
Also just hit this -- it's very confusing that correcting |
Hi, I think I found a weird caching issue with the environment variable
PHPLDAPADMIN_LDAP_HOSTS
. Here's my docker-compose file:The issue is that even if I change
PHPLDAPADMIN_LDAP_HOSTS
in the docker-compose file, the phpLDAPadmin site still shows and uses the old host. Only after I renamed thephpldapadmin
service tophpldapadmin2
, it finally got the change and it works now (took me an hour because I didn't get it...). As you can see, I haven't mounted any volumes in thephpldapadmin
service, so there should be no persistent data, and the environment variable is empty if Iecho
it on the console. What is going on?By the way, I thought that this might be the cause for problems described in #12.
The text was updated successfully, but these errors were encountered: