We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for the nice integration! I'm setting up an LDAP instance and found a small gotcha:
The main docker-compose.yml uses a YAML anchor and reference to specify the netbox-worker container:
docker-compose.yml
netbox-worker
services: netbox: &netbox # ... netbox-worker: <<: *netbox # ...
The current version of the LDAP wiki page suggests using a docker-compose.override.yml file which changes that image to the -ldap variant:
docker-compose.override.yml
-ldap
services: netbox: image: netboxcommunity/netbox:${VERSION-latest-ldap} # ...
The problem is this:
services: netbox: image: netboxcommunity/netbox:latest # ... netbox: image: netboxcommunity/netbox:latest # ...
services: netbox: image: netboxcommunity/netbox:latest-ldap # ... netbox: image: netboxcommunity/netbox:latest # ...
As you can see, this leads to a disconnect between the images used for the netbox and netbox-worker containers:
netbox
# docker-compose images Container Repository Tag Image Id Size ---------------------------------------------------------------------------------------------- netbox-docker_netbox-worker_1 netboxcommunity/netbox latest 03f42c259997 220.9 MB netbox-docker_netbox_1 netboxcommunity/netbox latest-ldap 1749d1867724 225.9 MB netbox-docker_nginx_1 nginx 1.19-alpine 4efb29ff172a 21.81 MB netbox-docker_postgres_1 postgres 12-alpine 44c9a6a10db6 157.7 MB netbox-docker_redis-cache_1 redis 6-alpine c1949ec48c51 31.15 MB netbox-docker_redis_1 redis 6-alpine c1949ec48c51 31.15 MB
I haven't yet determined if this causes any problems, but it seems like undesired behavior.
The workaround is simple, adding this to the suggested docker-compose.override.yml file:
netbox-worker: image: netboxcommunity/netbox:${VERSION-latest-ldap}
# docker-compose images Container Repository Tag Image Id Size ---------------------------------------------------------------------------------------------- netbox-docker_netbox-worker_1 netboxcommunity/netbox latest-ldap 1749d1867724 225.9 MB netbox-docker_netbox_1 netboxcommunity/netbox latest-ldap 1749d1867724 225.9 MB netbox-docker_nginx_1 nginx 1.19-alpine 4efb29ff172a 21.81 MB netbox-docker_postgres_1 postgres 12-alpine 44c9a6a10db6 157.7 MB netbox-docker_redis-cache_1 redis 6-alpine c1949ec48c51 31.15 MB netbox-docker_redis_1 redis 6-alpine c1949ec48c51 31.15 MB
The text was updated successfully, but these errors were encountered:
Thank you for bringing this to our attention. The wiki is open and can be edited by anyone. Feel free to adjust the page.
Sorry, something went wrong.
I've updated the Wiki page to add my better workaround: https://github.com/netbox-community/netbox-docker/wiki/LDAP/4ed440cf1b0fac561636374c928262d6ab8e6287
Updated the Wiki page again to include netbox-housekeeping image: https://github.com/netbox-community/netbox-docker/wiki/LDAP/cea452f3ffd2aa9aa63e4ba4116d314f4b91ae35
netbox-housekeeping
No branches or pull requests
Thanks for the nice integration! I'm setting up an LDAP instance and found a small gotcha:
Background
The main
docker-compose.yml
uses a YAML anchor and reference to specify thenetbox-worker
container:The current version of the LDAP wiki page suggests using a
docker-compose.override.yml
file which changes that image to the-ldap
variant:Problem
The problem is this:
docker-compose.yml
is evaluated first, effectively yielding this:docker-compose.override.yml
content is applied, effectively yielding this:As you can see, this leads to a disconnect between the images used for the
netbox
andnetbox-worker
containers:I haven't yet determined if this causes any problems, but it seems like undesired behavior.
Workaround
The workaround is simple, adding this to the suggested
docker-compose.override.yml
file:The text was updated successfully, but these errors were encountered: