mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 22:02:37 +00:00
Update README.md
Fixed error: docker: 'compose' is not a docker command.
This commit is contained in:
parent
f1ca9ab7eb
commit
d5c93bce7b
|
|
@ -40,8 +40,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8000:8080
|
- 8000:8080
|
||||||
EOF
|
EOF
|
||||||
docker compose pull
|
docker-compose pull #If using docker desktop, the commands are docker compose pull and docker compose up
|
||||||
docker compose up
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
The whole application will be available after a few minutes.
|
The whole application will be available after a few minutes.
|
||||||
|
|
@ -51,7 +51,7 @@ You should see the NetBox homepage.
|
||||||
To create the first admin user run this command:
|
To create the first admin user run this command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
|
docker-compose exec netbox /opt/netbox/netbox/manage.py createsuperuser # (Docker Desktop) docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
|
||||||
```
|
```
|
||||||
|
|
||||||
If you need to restart Netbox from an empty database often, you can also set the `SUPERUSER_*` variables in your `docker-compose.override.yml` as shown in the example.
|
If you need to restart Netbox from an empty database often, you can also set the `SUPERUSER_*` variables in your `docker-compose.override.yml` as shown in the example.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue