Melijn - being rewritten here https://github.com/Melijn/melijn-bot
If you want to use code from Melijn you have to credit me and all our contributors. Contact me on discord for more information #1
(I do not support changing the source code nor helping to build the source code.)
How to self-host using docker
- Copy
example-docker-compose.yml
todocker-compose.yml
- Copy
example-postgres.env
topostgres.env
- Copy
example.env
to.env
- Uncomment one of the volumes in the melijn-postgres service for persistant storage
- Make sure all the passwords, usernames and database names match between your
.env
file and the postgres and redis services - Fill in all the fields you can in
.env
, bot token, id, name, etc... (If you don't have tokens for spotify ect then don't expect commands related to spotify to work)
These 2 steps are optional (see notes) 7. You can build your own image from the source-code using
sudo docker build -t username/melijn:version .
8. Replacetoxicmushroom/Melijn:version
indocker-compose.yml
with yourusername/melijn:version
- Start docker compose with
sudo docker-compose up -d
(Make sure you're in the same folder as docker-compose.yml)
NOTES:
- username/melijn:version can be replaced by eg.
ShadowGamer/melijn:v1
- if you want to use your image you built on another machine then read the docker docs about
docker login
anddocker push
(you can publish images for free on https://hub.docker.com/) - You can also skip steps 7 and 8 and checkout what the latest tag is on https://hub.docker.com/r/toxicmushroom/melijn (currently this is
toxicmushroom/melijn:14e88d3ab1afe5bba3d7442488a768f13e3e0077
). Make sure to replace the example tag in thedocker-compose.yml
with the latest tag.
Note. If required you can copy this environment folder anywhere your like, rename it, ect. Be aware that this contains the login information to the local postgres storage which might hold user data collected from your discord server by melijn. You should never share your environment with others.