Easy to use web database for brain statistical maps, atlases and parcellation maps.
- Fork the main repository (https://github.com/NeuroVault/NeuroVault)
- Clone your fork to your computer:
git clone https://github.com/<your_username>/NeuroVault
- Install docker >= 20
- Install docker-compose >= 1.29
- Make sure your docker daemon is running and environment variables are configured (
cp .env.example .env
)
docker-compose up -d
The webpage will be available at 127.0.0.1. Initially, some data will be available by default with username/password neurovault/neurovault and neurovault2/neurovault2.
docker-compose exec django python manage.py migrate
The first time you run the application, you must migrate the db. You must also do this if you update any database models.
docker-compose stop
After making changes to the code you need to restart the server (but just the uwsgi and celery components):
docker-compose restart nginx django worker
If you would like to reset the server and clean the database:
docker-compose stop
docker-compose rm
docker-compose up
docker-compose run --rm django python manage.py shell
docker-compose run --rm django python manage.py test
If you add a dependency (e.g., a new pip install) or modify the Dockerfile in any way, you will need to rebuild the docker image:
docker-compose build django
To use pycortex you will need a different image (that includes FreeSurfer). Just change "neurovault/neurovault" with "neurovault/neurovault_fs" in docker-compose.yml. This image is significantly bigger and will take longer to download.
You can also build it locally
docker build -t neurovault/neurovault_fs -f fs_docker/Dockerfile .
Pay special close attention that the command above ends with a .
to indicate the present working directory, the base of the code repository.