- Create a folder called plugins in:
~/netbox-docker/
- Copy the contents here to:
~/netbox-docker/plugins/
- Create Dockerfile-Plugins in:
~/netbox-docker/
FROM netboxcommunity/netbox:latest
# repeat the last line for every plugin you want to load editable and customize the path
COPY ./plugins /plugins
RUN /opt/netbox/venv/bin/pip install --editable /plugins/plug-in-name
RUN /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
services:
netbox:
ports:
- '127.0.0.1:8000:8080'
build:
context: .
dockerfile: Dockerfile-Plugins
image: netbox:latest-plugins
volumes:
- ./plugins:/plugins
netbox-worker:
image: netbox:latest-plugins
build:
context: .
dockerfile: Dockerfile-Plugins
netbox-housekeeping:
image: netbox:latest-plugins
build:
context: .
dockerfile: Dockerfile-Plugins
PLUGINS = [
"geo_map",
]
$ docker compose -f docker-compose.yml -f docker-compose.test.override.yml up --build # (-d if you want to send it to the background)