Skip to content

Commit 64e4713

Browse files
committed
added superuser env variables to readme
1 parent 34cbb00 commit 64e4713

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.lite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ docker create \
1212
--name=netbox \
1313
-e PUID=1000 \
1414
-e PGID=1000 \
15+
-e SUPERUSER_EMAIL=<SUPERUSER_EMAIL> \
16+
-e SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD> \
1517
-e ALLOWED_HOST=<ALLOWED_HOST> \
1618
-e DB_NAME=<DB_NAME> \
1719
-e DB_USER=<DB_USER> \

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ docker create \
6666
--name=netbox \
6767
-e PUID=1000 \
6868
-e PGID=1000 \
69+
-e SUPERUSER_EMAIL=<SUPERUSER_EMAIL> \
70+
-e SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD> \
6971
-e ALLOWED_HOST=<ALLOWED_HOST> \
7072
-e DB_NAME=<DB_NAME> \
7173
-e DB_USER=<DB_USER> \
@@ -97,6 +99,8 @@ services:
9799
environment:
98100
- PUID=1000
99101
- PGID=1000
102+
- SUPERUSER_EMAIL=<SUPERUSER_EMAIL>
103+
- SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD>
100104
- ALLOWED_HOST=<ALLOWED_HOST>
101105
- DB_NAME=<DB_NAME>
102106
- DB_USER=<DB_USER>
@@ -123,6 +127,8 @@ Container images are configured using parameters passed at runtime (such as thos
123127
| `-p 8000` | will map the container's port 8000 to port 8000 on the host |
124128
| `-e PUID=1000` | for UserID - see below for explanation |
125129
| `-e PGID=1000` | for GroupID - see below for explanation |
130+
| `-e SUPERUSER_EMAIL=<SUPERUSER_EMAIL>` | Username for admin account |
131+
| `-e SUPERUSER_PASSWORD=<SUPERUSER_PASSWORD>` | Password for admin account |
126132
| `-e ALLOWED_HOST=<ALLOWED_HOST>` | The hostname you will use to access the app (i.e., netbox.example.com |
127133
| `-e DB_NAME=<DB_NAME>` | Databaes name (optional, default: netbox) |
128134
| `-e DB_USER=<DB_USER>` | Database user |

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ param_volumes:
2121
- { vol_path: "/config", vol_host_path: "<path to data on host>", desc: "config directory volume mapping" }
2222
param_usage_include_env: true
2323
param_env_vars:
24+
- { env_var: "SUPERUSER_EMAIL", env_value: "<SUPERUSER_EMAIL>", desc: "Username for admin account" }
25+
- { env_var: "SUPERUSER_PASSWORD", env_value: "<SUPERUSER_PASSWORD>", desc: "Password for admin account" }
2426
- { env_var: "ALLOWED_HOST", env_value: "<ALLOWED_HOST>", desc: "The hostname you will use to access the app (i.e., netbox.example.com" }
2527
- { env_var: "DB_NAME", env_value: "<DB_NAME>", desc: "Databaes name (optional, default: netbox)" }
2628
- { env_var: "DB_USER", env_value: "<DB_USER>", desc: "Database user" }

0 commit comments

Comments
 (0)