mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-08-13 17:57:41 +02:00
Updated Custom Startup Scripts (markdown)
@ -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/
|
||||
```
|
Reference in New Issue
Block a user