-
Change variables in application.properties file
-
Use command
docker-compose up
Command
docker run IMAGE -e BOT_TOKEN=TOKEN ...
with -e the variables
- Compile
mvn clean package - Run
java -jar target/bot.warwith variables
- Compile
mvn clean packageand get the war file intargetfolder - Config the config file of your bot
CATALINA-HOME/conf/Catalina/localhost/bot.xmlwith variables - Deploy the war
CATALINA-HOME/webapps/bot.war
| Key | Description | Default |
|---|---|---|
| LOG_FILE | Location of log file | ./log/bot.log |
| BOT_TOKEN | Token of the Discord bot | None - required |
| DB_USERNAME | The username used for your database | bot - required |
| DB_PASSWORD | The password used for your database | bot - required |
| DB_HOST | Where your database is hosted | bot-mysql - required |
| DB_PORT | The port of your database | 3306 |
| DB_NAME | The name of the table | bot - required |
| DB_TIMEZONE | The timezone used | UTC |
Project under MIT licence