Skip to content

Commit

Permalink
start setup docs (INCOMPLETE)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caeden117 committed Jul 26, 2023
1 parent 1eba85d commit 13edfc7
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

A general backend project for modding communities.

## Setup

To setup an instance of Hive, you can follow our [Setup guide](docs/Hive/Setup.md).

## Building

### Dependencies
Expand Down Expand Up @@ -49,4 +53,4 @@ Update the password fields in `docker-compose.yml`, as well as any other setting

Run the compose file with `docker-compose up`.

Plugins are loaded by mapping a volume with a host machine. See the commented out line in the compose file example.
Plugins are loaded by mapping a volume with a host machine. See the compose file example.
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ services:
# 21034 is the port that Hive can be accessed from the host machine. You are free to change it to something that works for you.
- "21034:80"

# volumes:
# - /path/to/hive/plugins:/app/plugins
# Plugins are required to use Hive.
# Please re-map the host directory (/path/to/hive/plugins) to a location on the machine where plugins will be loaded from.
# Leave the second half (/app/plugins) the same!
volumes:
- /path/to/hive/plugins:/app/plugins
db:
image: postgres:12.8
restart: unless-stopped
Expand Down
35 changes: 35 additions & 0 deletions docs/Hive/Setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Hive Setup Guide

Follow this setup guide to create your own instance of the Hive back-end.

## Running Hive With Docker

If you are accustomed to using and operating Docker containers, running Hive through Docker may be appealing to you.

Included in the Hive repository is the [`docker-compose.yml`](https://github.com/Atlas-Rhythm/Hive/blob/master/docker-compose.yml) file. To run Hive in a Docker environment, please download this file.

**Do not use this file as-is!**

The Docker Compose file contains the password for the database. Change the password by opening `docker-compose.yml` in any text environment, and editing the `POSTGRES_PASSWORD` field wherever it comes up.

Furthermore, you will need to define a location on the host machine where Hive plugins will be stored and loaded from.

## Downloading Hive

If you do not want to use Docker, you can download the latest release of Hive through [the Releases page](https://github.com/Atlas-Rhythm/Hive/releases).

Simply unzip the Hive release wherever you wish to host Hive.

**Be warned!** You may have to install [PostgreSQL](https://www.postgresql.org/), the database used by Hive. Hive was developed with PostgreSQL 12. Later versions of PostgreSQL may work, but are untested.

## Downloading Plugins

Plugins are an essential part of Hive.

## Setting up Auth0

[Auth0](https://auth0.com/) is an authentication service that Hive supports by default.

An authentication service is required to use Hive. Unless you plan on using a separate authentication plugin, you need to setup Auth0.

[Follow our dedicated Auth0 guide](https://github.com/Atlas-Rhythm/Hive/tree/master/docs/Auth0) to set up Auth0 for your Hive installation.

0 comments on commit 13edfc7

Please sign in to comment.