Run Projects backend, CRISalid Apollo server, RabbitMQ and Neo4j graph database.
- Docker Compose V2
- A CRISalid Neo4j graph dump
git clone --recurse-submodules git@github.com:CyberCRI/projects-crisalid.git git pull --recurse-submodulescp .env.example .envDefault values that work for a local Docker container are given.
If you run the stack for the first time, first place your neo4j.dump file in the crisalid-apollo/neo4j/dumps directory, then run one of the following commands:
make local-restore # To run the stack and restore the dump
make build-restore # To rebuild and run the stack and restore the dumpIf you already have data in your graph, then run one of the following commands:
make local # To run the stack
make build # To rebuild and run the stackGet a shell access to the backend container:
make projects-bashExecute database migrations, collect static files and compile translation files:
# inside the container
python manage.py migrate
python manage.py collectstatic
python manage.py compilemessagesA default superadmin is created in keycloak. To import it in Projects, you need to login at least once in the swagger or in Django admin using these credentials:
- username:
adminoradmin@localhost.com - password:
admin
You can also use these credentials (use the admin username, not the email) to connect to the Keycloak admin panel