#########################
Quick Setup
#########################
Quick Setup guide focuses on an easily configured development environment. In this environment, Pavilion, RTMP servers and Jitsi each run in their own containers. An FQDN (Fully Qualified Domain Name) will be required.
***************************************
Install Docker & Docker Compose
***************************************
Since all the components will be running in containers, you will need Docker and Docker Compose. You may install Docker by following the guide in `this link `_.
You can follow `this link `_ to install Docker Compose.
***************************************
Download Pavilion from GitHub Repository
***************************************
.. code-block:: bash
sudo apt-get install git
git clone https://github.com/doganbros/purpie-docker.git
cd purpie-docker
***************************************
Configure Pavilion
***************************************
Make a copy of the ``.env.example`` named ``.env``. This ``.env`` contains environment variables for `Jitsi `_ as well as `Pavilion `_.
***************************************
Generate SSL Certificates
***************************************
SSL certificates are required for jitsi, purpie and RTMP servers to work correctly. If you have ssl certificates already, copy them to ``./docker/ssl`` directory. The ``fullchain`` certificate should be named as ``cert.crt`` where as the ``private`` certificate should be named as ``cert.key``.
If you do not have SSL certicates already, run the script below to obtain one.
.. code-block:: bash
./docker/ssl-gen.sh
***************************************
Generate Strong Passwords
***************************************
To generate secured and strong passwords in the security section options of ``.env`` file for Pavilion and Jitsi, run the script below.
.. code-block:: bash
./gen-passwords.sh
***************************************
Start Pavilion
***************************************
.. code-block:: bash
docker-compose up -d
***************************************
Rebuilding the Image
***************************************
Sometimes, especially after an update, you might want to rebuild your image. Doing so would let you build your frontend again.
First, bring your docker containers down;
.. code-block:: bash
docker-compose down
Then start them up again with the following command.
.. code-block:: bash
docker-compose up --build -d