From 09503e2ea43df21a4c8c2090dc3816f06b9a270c Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Sun, 11 Feb 2024 09:40:14 +0100 Subject: [PATCH] missing docker-compose.sh --- docker-compose.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 docker-compose.sh diff --git a/docker-compose.sh b/docker-compose.sh new file mode 100755 index 000000000..dfb7b8539 --- /dev/null +++ b/docker-compose.sh @@ -0,0 +1,14 @@ +#! /usr/bin/env bash + +if [ -f db/ciso-assistant.sqlite3 ] ; then + echo "the database seems already created" + echo "you should launch docker compose up -d" +else + docker compose build + docker compose up -d + docker compose exec backend python manage.py migrate + echo "initialize your superuser account..." + docker compose exec backend python manage.py createsuperuser + echo "connect to ciso assistant on http://localhost:3000" + echo "for successive runs you can now use docker compose up" +fi