From 34a8551f9d2b1c6e3df0b1140b2ccfee6a0a7400 Mon Sep 17 00:00:00 2001 From: Chris Cummings Date: Mon, 3 Apr 2023 14:40:07 -0700 Subject: [PATCH] chore: add v2 docker compose and exclude django_rq --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e689601..91d46a1 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,15 @@ source /opt/netbox/venv/bin/activate ### Docker Commands +Docker Compose v1 + +```bash +docker-compose exec netbox bash -c "source /opt/netbox/venv/bin/activate && ./manage.py dumpdata --natural-foreign --natural-primary -e extras.Script -e extras.Report -e extras.ObjectChange -e django_rq --indent 2" > netbox-demo-$VERSION.json ``` -docker-compose exec netbox bash -c "source /opt/netbox/venv/bin/activate && ./manage.py dumpdata --natural-foreign --natural-primary -e extras.Script -e extras.Report -e extras.ObjectChange --indent 2" > netbox-demo-$VERSION.json + +Docker Compose v2 + +```bash +docker compose exec netbox bash -c "source /opt/netbox/venv/bin/activate && ./manage.py dumpdata -e extras.Script -e extras.Report -e extras.ObjectChange -e django_rq --indent 2 --output netbox-demo-$VERSION.json" ```