ClaptrapBot/README.md

63 lines
1.6 KiB
Markdown
Raw Normal View History

2017-12-20 17:58:08 +01:00
# BrokenDiscordBot
2018-02-15 23:08:12 +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: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:08:12 +01:00
> environment:
> - PMA_HOST=database
> depends_on:
> - "database"
> networks: