2017-12-20 17:58:08 +01:00
|
|
|
# BrokenDiscordBot
|
2018-02-18 22:38:31 +01:00
|
|
|
|
2018-03-01 17:01:29 +01:00
|
|
|
Gradle:<br/>
|
|
|
|
[![Build Status](https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/badge/icon)](https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/)
|
2018-02-18 22:38:31 +01:00
|
|
|
|
2018-03-01 17:01:29 +01:00
|
|
|
Docker:<br/>
|
|
|
|
[![Build Status](https://jenkins.seb6596.ovh/job/Discord%20Bot%20Docker/job/master/badge/icon)](https://jenkins.seb6596.ovh/job/Discord%20Bot%20Docker/job/master/)
|
2017-12-20 17:54:44 +01:00
|
|
|
## Install:
|
2018-02-15 23:08:12 +01:00
|
|
|
|
2017-12-20 17:54:44 +01:00
|
|
|
> The easiest method it's to use docker-compose:
|
|
|
|
>
|
|
|
|
> docker-compose.yml:
|
|
|
|
> ```YAML
|
|
|
|
> version: '2'
|
|
|
|
>
|
|
|
|
> services:
|
2018-02-15 02:02:35 +01:00
|
|
|
> botdiscord:
|
2018-09-10 14:52:03 +02:00
|
|
|
> image: brokenfire/brokendiscordbot:master
|
2017-12-20 17:54:44 +01:00
|
|
|
> networks:
|
|
|
|
> - proxy
|
2018-02-15 23:08:12 +01:00
|
|
|
> - internal
|
2017-12-20 17:54:44 +01:00
|
|
|
> environment:
|
2018-02-15 23:08:12 +01:00
|
|
|
> - PORT=8080
|
2017-12-20 17:54:44 +01:00
|
|
|
> - TOKEN=1111111111111 #CHANGE ME!
|
2018-02-15 23:08:12 +01:00
|
|
|
> - DB_URL=jdbc:mysql://database/botdiscord
|
|
|
|
> - DB_USER=root
|
|
|
|
> - DB_PWD=ogahxu1eigohN2Eok0xoawae #CHANGE ME!
|
2017-12-20 17:54:44 +01:00
|
|
|
> labels:
|
|
|
|
> - "traefik.frontend.rule=Host:exemple.com" #CHANGE ME!
|
2018-02-15 23:08:12 +01:00
|
|
|
> - "traefik.docker.network=proxy"
|
2017-12-20 17:54:44 +01:00
|
|
|
> - "traefik.port=8080"
|
|
|
|
> - "traefik.backend=botdiscord"
|
|
|
|
> - "traefik.frontend.entryPoints=http,https"
|
2018-02-15 23:08:12 +01:00
|
|
|
> volumes:
|
|
|
|
> - "./logs:/bot_src/logs"
|
|
|
|
> depends_on:
|
|
|
|
> - "database"
|
2017-12-20 17:54:44 +01:00
|
|
|
> restart: always
|
|
|
|
>
|
2018-02-15 23:08:12 +01:00
|
|
|
> phpmyadmin:
|
|
|
|
> image: phpmyadmin/phpmyadmin:latest
|
|
|
|
> labels:
|
|
|
|
> - "traefik.frontend.rule=Host:phpmyadmin.exemple.com" #CHANGE ME!
|
|
|
|
> - "traefik.port=80"
|
|
|
|
> - "traefik.docker.network=proxy"
|
|
|
|
> - "traefik.backend=phpmyadmin"
|
|
|
|
> - "traefik.frontend.entryPoints=http,https"
|
2018-02-15 23:13:54 +01:00
|
|
|
> environment:
|
|
|
|
> - PMA_HOST=database
|
|
|
|
> depends_on:
|
|
|
|
> - "database"
|
2018-02-15 23:11:43 +01:00
|
|
|
>
|
|
|
|
> database:
|
|
|
|
> image: mariadb:latest
|
|
|
|
> volumes:
|
|
|
|
> - ./db:/var/lib/mysql
|
|
|
|
> labels:
|
|
|
|
> - "traefik.enable=false"
|
|
|
|
> environment:
|
|
|
|
> - MYSQL_ROOT_PASSWORD= #CHANGE ME!
|
|
|
|
> - MYSQL_DATABASE=botdiscord
|
|
|
|
> - MYSQL_USER=bot
|
|
|
|
> - MYSQL_PASSWORD=Ho0duiWo3noo3Ahrahx0rohz #CHANGE ME!
|
|
|
|
> networks:
|
|
|
|
> - internal
|
|
|
|
>
|
2018-02-15 23:13:54 +01:00
|
|
|
> networks:
|
|
|
|
> proxy:
|
|
|
|
> external: true
|
|
|
|
> internal:
|
2018-02-15 23:21:39 +01:00
|
|
|
> external: false
|
|
|
|
> ```
|
2018-02-18 22:50:08 +01:00
|
|
|
> Docker hub [repo](https://hub.docker.com/r/brokenfire/brokendiscordbot/)
|
|
|
|
|
2018-03-01 17:01:29 +01:00
|
|
|
## Javadoc & Jenkins
|
|
|
|
- [Javadoc](https://jenkins.seb6596.ovh/job/Bot%20Discord%20Gradle/javadoc/)
|
|
|
|
- [Jenkins](https://jenkins.seb6596.ovh/)
|
2018-02-28 20:56:48 +01:00
|
|
|
|
2018-02-18 13:15:23 +01:00
|
|
|
|