From 2e34599b0b214738fd73201dcd2b3ddfc893dfc1 Mon Sep 17 00:00:00 2001 From: eric-intuitem <71850047+eric-intuitem@users.noreply.github.com> Date: Sun, 22 Oct 2023 02:33:23 +0200 Subject: [PATCH] Add docker-compose configuration with pg database --- .gitignore | 1 + README.md | 22 ++++++++++++++++++---- docker-compose-pg.sh | 11 +++++++++++ docker-compose.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 4 deletions(-) create mode 100755 docker-compose-pg.sh create mode 100644 docker-compose.yaml diff --git a/.gitignore b/.gitignore index e01e8f136..22180b445 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ ciso_assistant/build.json *.sqlite3 db/django_secret_key db/attachments/ +db/data/ diff --git a/README.md b/README.md index 96d496be9..23f44ca5e 100644 --- a/README.md +++ b/README.md @@ -102,12 +102,12 @@ python manage.py collectstatic python manage.py createsuperuser ``` -5. Run CISO +5. Run CISO Assistant ```sh python manage.py runserver ``` -You can then reach CISO using your web brower at [http://127.0.0.1:8000/](http://127.0.0.1:8000/) +You can then reach CISO Assistant using your web brower at [http://127.0.0.1:8000/](http://127.0.0.1:8000/) #### Using Docker @@ -127,7 +127,7 @@ docker run --rm -it --env CREATE_SUPERUSER=true -p 8000:8000 -v ./db:/code/db c When asked for, enter your email and password for your superuser. -You can then reach CISO using your web brower at [http://127.0.0.1:8000/](http://127.0.0.1:8000/) +You can then reach CISO Assistant using your web brower at [http://127.0.0.1:8000/](http://127.0.0.1:8000/) For the following executions, simply run: @@ -137,7 +137,21 @@ docker run --rm -p 8000:8000 -v ./db:/code/db ciso-assistant:$(