1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00
Lumi/README.md

54 lines
2.4 KiB
Markdown
Raw Normal View History

2024-06-15 23:29:26 +00:00
# You can invite me with [this link](https://discord.com/oauth2/authorize?client_id=1038050427272429588&permissions=8&scope=bot). Thanks for using Luminara!
2023-10-23 12:49:46 +00:00
2024-06-15 22:45:24 +00:00
![Lumi art](https://git.wlinator.org/assets/img/logo.png)
2024-02-28 15:38:45 +00:00
2024-04-05 12:05:13 +00:00
## Self-host
2024-03-29 17:17:51 +00:00
2024-06-15 22:45:24 +00:00
**The next part of this README explains how to self-host Lumi, this allows you to host your own version of my code and
2024-03-29 17:17:51 +00:00
create a personalized Discord bot.**
2024-02-28 15:38:45 +00:00
2024-06-15 22:45:24 +00:00
**Note: because the `.slots` and `.blackjack` commands use custom (animated) emoji, these commands will break when you self-host Lumi. Please replace the ID values in `config/JSON/resources.json` with your own set of emotes.**
2024-04-13 16:01:18 +00:00
2024-04-05 12:05:13 +00:00
### Installation
2024-04-13 16:01:18 +00:00
#### Docker
2024-06-15 22:45:24 +00:00
Lumi comes containerized with essential components such as MariaDB, its core application, Adminer, and Dozzle. To ensure smooth operation of Dozzle, it's necessary to copy `users.yml.example` to `users.yml` and configure an authentication user as outlined in the file. Refer to the file for detailed instructions.
2024-03-29 17:17:51 +00:00
2024-06-15 22:45:24 +00:00
To install Lumi, run these commands:
2024-02-28 15:38:45 +00:00
2024-04-13 16:01:18 +00:00
```commandline
2024-06-15 23:32:43 +00:00
git clone https://git.wlinator.org/Luminara/Lumi && cd Core
2024-02-28 15:38:45 +00:00
```
2024-04-05 12:05:13 +00:00
Copy `.env.template` to `.env` and fill out the [variables](#environment-variables).
2024-03-01 11:37:13 +00:00
2024-04-13 16:01:18 +00:00
```commandline
2024-02-28 15:38:45 +00:00
docker compose up -d --build
```
2024-04-13 16:08:50 +00:00
Please note that it's highly recommended to establish a reverse proxy setup for Adminer and Dozzle, ensuring better security and accessibility.
- Adminer should be directed to port 8080.
- Dozzle should be mapped to port 8081.
2024-04-13 16:01:18 +00:00
#### Alternative
2024-06-15 22:45:24 +00:00
You can run Lumi without Docker, however I don't provide support or documentation for this. Here are some requirements to get you started.
2024-04-13 16:01:18 +00:00
- MariaDB server on port 3306.
- Python 3.11 with the [required pip packages](requirements.txt).
- See the environment variables in [docker-compose.yml](docker-compose.yml) and set them manually.
2024-03-29 17:17:51 +00:00
2024-03-19 13:08:55 +00:00
2024-04-13 16:01:18 +00:00
## Environment variables (.env)
2024-03-19 13:08:55 +00:00
2024-04-13 16:08:50 +00:00
- `TOKEN`: your Discord Bot Token, you can get this [here](https://discord.com/developers/applications).
- `DBX_*`: set these up if you want to make database backups to your Dropbox app.
- `MARIADB_USER`: the username for your MariaDB database.
- `MARIADB_PASSWORD`: the password for your database.
- `MARIADB_ROOT_PASSWORD`: can be ignored unless you have a specific use for it.
- `MARIADB_DATABASE`: the name of your database.
2024-03-19 13:08:55 +00:00
2024-04-13 16:01:18 +00:00
Other variables can be specified in `docker.compose.yml` (core)
2024-03-26 19:31:48 +00:00
---
2024-06-15 22:45:24 +00:00
Some icons used in Lumi are provided by [Icons8](https://icons8.com/).