Skip to content

Commit

Permalink
missing docker-compose.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed Feb 11, 2024
1 parent 0505337 commit 09503e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-compose.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 09503e2

Please sign in to comment.