-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
48 lines (31 loc) · 980 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: cli psql flush-data load-data fix-data reset build build-image
cli:
docker compose run netbox bash
shell:
docker compose run netbox ./manage.py shell
psql:
docker compose exec postgres psql -U netbox netbox
flush-data:
docker compose run netbox ./manage.py flush --no-input
load-data:
docker compose run netbox ./manage.py loaddata /tmp/demo-data.json
fix-data:
docker compose run netbox ./manage.py trace_paths --force --no-input
build-image:
docker compose build netbox
clean:
docker compose down -v
start: build-image
docker compose up -d
stop:
docker compose down
logs:
docker compose logs netbox -f
migrations:
docker compose run netbox ./manage.py makemigrations --no-input --no-header netbox_field_permissions
migrate:
docker compose run netbox ./manage.py migrate --no-input
migratezero:
docker compose run netbox ./manage.py migrate netbox_field_permissions zero --no-input
restart: stop start
reset: flush-data load-data fix-data