Fix issue #360 regarding netbox-worker image

Jonathon Reinhart 2020-12-05 22:52:27 -05:00
parent ffeb8f63aa
commit 4ed440cf1b

10
LDAP.md

@ -17,13 +17,15 @@ REMOTE_AUTH_BACKEND = 'netbox.authentication.LDAPBackend'
Among others you can use *docker-compose.override.yml* to inject necessary variables.
Don't forget that the `netbox-worker` service should use the same image. See [this issue](https://github.com/netbox-community/netbox-docker/issues/360).
### Example override file for Active Directory
```yml
version: "3.4"
services:
netbox:
image: netboxcommunity/netbox:${VERSION-latest-ldap}
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
environment:
AUTH_LDAP_SERVER_URI: "ldaps://domain.com"
AUTH_LDAP_BIND_DN: "CN=Netbox,OU=EmbeddedDevices,OU=MyCompany,DC=domain,dc=com"
@ -34,6 +36,8 @@ services:
AUTH_LDAP_IS_ADMIN_DN: "CN=Network Configuration Operators,CN=Builtin,DC=domain,dc=com"
AUTH_LDAP_IS_SUPERUSER_DN: "CN=Domain Admins,CN=Users,DC=domain,dc=com"
LDAP_IGNORE_CERT_ERRORS: "false"
netbox-worker:
image: *NetboxImage
```
### Example override file for OpenLDAP
@ -44,7 +48,7 @@ Remember to change `AUTH_LDAP_GROUP_TYPE` to proper value.
version: "3.4"
services:
netbox:
image: netboxcommunity/netbox:${VERSION-latest-ldap}
image: &NetboxImage netboxcommunity/netbox:${VERSION-latest-ldap}
environment:
AUTH_LDAP_SERVER_URI: "ldaps://domain.com"
AUTH_LDAP_BIND_DN: "cn=netbox,ou=services,dc=domain,dc=com"
@ -60,4 +64,6 @@ services:
AUTH_LDAP_ATTR_LASTNAME: "sn"
AUTH_LDAP_ATTR_FIRSTNAME: "givenName"
LDAP_IGNORE_CERT_ERRORS: "false"
netbox-worker:
image: *NetboxImage
```