Deploying (Setup)
So you want to deploy your own WhirlServer? Nice! You've come to the right place!
#
With Docker#
Prerequisites#
Usage$ docker run \> -d \> -p 8080:80 \> -p 6650:6650 \> -p 5673:5673 \> -v /var/lib/whirl:/.whirl \> whirlsplash/whirl
#
Copyabledocker run -d -p 8080:80 -p 6650:6650 -p 5673:5673 -v /var/lib/whirl:/.whirl whirlsplash/whirl
#
NotesYour configuration file can be found in /var/lib/whirl/
.
#
With Docker Compose#
Prerequisites- Docker
- Docker Compose (newer versions of Docker include Docker Compose!)
#
Usage- Create a directory, preferably in a monitorable location,
cd
into it, and create a file nameddocker-compose.yml
with the following contents:
# docker-compose.yml
version: "3.3"services: whirl: ports: - "8080:80" # API - "6650:6650" # Distributor - "5673:5673" # Hub volumes: - ./.whirl-data:/.whirl image: whirlsplash/whirl
- Execute
docker-compose up
(ordocker compose up
in later versions of Docker). - Wait around five seconds, if no errors are logged;
Ctrl + C
the process. Whirl has now generated a default configuration file for you in the./whirl-data/
directory,cd
into this directory and modify theConfig.toml
to your liking. - You may now
cd
back into the originally created directory and executedocker-compose up -d
(ordocker compose up -d
in later versions of Docker).
#
NotesYour configuration file can be found in ./whirl-data/
.
#
With a Standalone Binary (Currently only for developmental use)- Create a directory, preferably in a monitorable location and
cd
into it. - Download the latest binary release of your platform (if available) from the Whirl releases page.
- Execute
whirl run distributor
- Wait around five seconds, if no errors are logged:
Ctrl + C
the process. Whirl has now generated a default configuration file for you in the./whirl/
directory,cd
into this directory and modify theConfig.toml
to your liking. - You may now
cd
back into the originally created directory and executewhirl run
(orwhirl run distributor,hub
if you would like to run only a select few of Whirl's sub-servers).
#
NotesYour configuration file can be found in ./whirl/
.
#
Notessystemd configuration may (?) come soon!