Skip to content

Commit

Permalink
Merge pull request #32 from intuitem/missing_compose_sh
Browse files Browse the repository at this point in the history
missing docker-compose.sh
  • Loading branch information
ab-smith authored Feb 11, 2024
2 parents 0505337 + 09503e2 commit cd1c6cb
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 cd1c6cb

Please sign in to comment.