ClaptrapBot/README.md

82 lines
2.2 KiB
Markdown
Raw Normal View History

2017-12-20 17:58:08 +01:00
# BrokenDiscordBot
2018-02-18 22:38:31 +01:00
Master:<br/> [![Build Status](https://jenkins.seb6596.ovh/buildStatus/icon?job=BrokenDiscordBot/master)](https://jenkins.seb6596.ovh/job/BrokenDiscordBot/job/master/)
2018-02-18 22:41:10 +01:00
Devel: <br/>[![Build Status](https://jenkins.seb6596.ovh/buildStatus/icon?job=BrokenDiscordBot/devel)](https://jenkins.seb6596.ovh/job/BrokenDiscordBot/job/devel/)
2018-02-18 22:38:31 +01:00
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:
> botdiscord:
2018-02-15 23:08:12 +01:00
> image: brokenfire/brokendiscordbot:latest
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/)
#### Jenkisfile
`git config --global merge.ours.driver true`
```
[merge "ours"]
name = "Keep ours merge"
driver = true
```
2018-02-18 13:15:23 +01:00