The Research Workspaces can be installed with a docker compose setup. This way the hole platform is up and running within minutes.
First we need to checkout the code.
git clone https://git.web.rug.nl/VRE/Broker.git
Make sure you have Docker and Docker-Compose installed. On Debian based systems you can install it with the following setup https://docs.docker.com/engine/install/debian/
Run the following commands and a complete production setup is created.
cd Broker docker-compose up
The docker setup is created according to the docker-compose.yaml in the root directory. This will create a own virtual network and some persistent storage volumes.
The following persistent volumes are created:
- Postgress data. This is used for Postgress database files
- Redis data. This is used for Redis storage
- TUSD data. This is used for the temporary file uploads that are being processed
- Static files data. This is used for Django static files served by NGINX
During installation the following docker containers will be created:
- Postgress DB server
- Redis DB server
- The Upload Service Daemon sever (TUSD)
- Django REST API server
- Django background scheduler server
- NGINX TUSD frontend server
- NGINX API frontend server
Only the NGINX containers have an connection with the outside world. By default you have:
- REST API and admin on http://localhost:1337/api/redoc/ and http://localhost:1337/api/admin/
- TUSD Upload server on http://localhost:1080/files
You can change the Docker setup by changing the settings in the file docker/project.env. Every setting has some explanation what is does or where it is fore.
System Message: ERROR/3 (<stdin>, line 56)
Unknown directive type "literalinclude".
.. literalinclude:: ../docker/project.env.example :language: bash