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/whirlCopyable#
docker run -d -p 8080:80 -p 6650:6650 -p 5673:5673 -v /var/lib/whirl:/.whirl whirlsplash/whirlNotes#
Your 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,
cdinto it, and create a file nameddocker-compose.ymlwith 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 upin later versions of Docker). - Wait around five seconds, if no errors are logged;
Ctrl + Cthe process. Whirl has now generated a default configuration file for you in the./whirl-data/directory,cdinto this directory and modify theConfig.tomlto your liking. - You may now
cdback into the originally created directory and executedocker-compose up -d(ordocker compose up -din later versions of Docker).
Notes#
Your 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
cdinto 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 + Cthe process. Whirl has now generated a default configuration file for you in the./whirl/directory,cdinto this directory and modify theConfig.tomlto your liking. - You may now
cdback into the originally created directory and executewhirl run(orwhirl run distributor,hubif you would like to run only a select few of Whirl's sub-servers).
Notes#
Your configuration file can be found in ./whirl/.
Notes#
systemd configuration may (?) come soon!