Updated Custom Startup Scripts (markdown)

Christian Mäder
2019-10-09 12:25:34 +02:00
parent ca1f2dcfd0
commit bbd24369c8

@ -31,4 +31,17 @@ The [wiki page "Initializers"](Initializers) explains how to use them.
## Disable Startup Scripts
The execution of the startup scripts can be prevented by setting the environment variable `SKIP_STARTUP_SCRIPTS` to `true`, e.g. in the file `env/netbox.env`.
The execution of the startup scripts can be prevented by setting the environment variable `SKIP_STARTUP_SCRIPTS` to `true`, e.g. in the file `env/netbox.env`.
## Custom Docker Image
You can also build your own Netbox Docker image containing your own startup scripts, custom fields, users and groups
like this:
```Dockerfile
ARG VERSION=latest
FROM netboxcommunity/netbox:$VERSION
COPY startup_scripts/ /opt/netbox/startup_scripts/
COPY initializers/ /opt/netbox/initializers/
```