Updated Using Netbox Plugins (markdown)

Tobias Genannt 2021-01-15 11:48:32 +01:00
parent 03abad8c70
commit 0c8fd3d472

@ -38,6 +38,8 @@ RUN pip install --no-warn-script-location -r /plugin_requirements.txt
```
> NOTE: You can swap the image out to use any of the images that the Netbox-Docker community publishes to [Docker Hub](https://hub.docker.com/r/netboxcommunity/netbox/tags). For example if LDAP is required, swap out `netboxcommunity/netbox:latest` for `netboxcommunity/netbox:latest-ldap`.
> NOTE: From **version 0.28.0** the Python environment for Netbox is installed into a virtual environment located at `/opt/netbox/venv`. Because of this the `RUN` command from above must be change to `RUN /opt/netbox/venv/bin/pip install -r /plugin_requirements.txt`
## Docker Compose Override
`docker-compose.override.yml`, as its name implies, can contain configuration overrides for existing services or entirely new services.
@ -55,7 +57,8 @@ services:
netbox-worker:
image: netbox:latest-plugins
```
This configuration will change the ports `NGINX` will use. It will also select the build file created in previous steps and tell the `netbox-worker` service to now use the new image (netbox:latest-plugins) that has been created.
This configuration will change the ports `NGINX` will use. It will also select the build file created in previous steps and tell the `netbox-worker` service to now use the new image (netbox:latest-plugins) that has been created.
> NOTE: From **version 0.28.0** the Nginx container is not used anymore. The port mapping must be configured for the Netbox service.
## Build and Deploy
To build and deploy this in docker two commands are required.