2020-12-08 02:40:17 +00:00
|
|
|
version: '3.0'
|
|
|
|
|
|
|
|
services:
|
|
|
|
bot:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
image: esmbot
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./logs:/home/esmBot/.internal/logs
|
Class commands, improved sharding, and many other changes (#88)
* Load commands recursively
* Sort commands
* Missed a couple of spots
* missed even more spots apparently
* Ported commands in "fun" category to new class-based format, added babel eslint plugin
* Ported general commands, removed old/unneeded stuff, replaced moment with day, many more fixes I lost track of
* Missed a spot
* Removed unnecessary abort-controller package, add deprecation warning for mongo database
* Added imagereload, clarified premature end message
* Fixed docker-compose path issue, added total bot uptime to stats, more fixes for various parts
* Converted image commands into classes, fixed reload, ignore another WS event, cleaned up command handler and image runner
* Converted music/soundboard commands to class format
* Cleanup unnecessary logs
* awful tag command class port
* I literally somehow just learned that you can leave out the constructor in classes
* Pass client directly to commands/events, cleaned up command handler
* Migrated bot to eris-sharder, fixed some error handling stuff
* Remove unused modules
* Fixed type returning
* Switched back to Eris stable
* Some fixes and cleanup
* might wanna correct this
* Implement image command ratelimiting
* Added Bot token prefix, added imagestats, added running endpoint to API
2021-04-12 16:16:12 +00:00
|
|
|
- ./bot-help:/home/esmBot/help
|
|
|
|
- ./bot-temp:/home/esmBot/temp
|
2022-07-26 15:38:42 +00:00
|
|
|
- ./config/servers.json:/home/esmBot/.internal/config/servers.json
|
2020-12-08 02:40:17 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
2021-09-13 17:54:27 +00:00
|
|
|
OUTPUT: /home/esmBot/help/help.md
|
2020-12-08 02:40:17 +00:00
|
|
|
TEMPDIR: /home/esmBot/temp
|
|
|
|
links:
|
|
|
|
- lavalink
|
|
|
|
depends_on:
|
|
|
|
- lavalink
|
2021-03-18 16:19:08 +00:00
|
|
|
- postgres
|
2020-12-08 02:40:17 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
esmbot:
|
|
|
|
ipv4_address: 172.20.0.2
|
|
|
|
|
|
|
|
lavalink:
|
|
|
|
container_name: lavalink
|
|
|
|
image: fredboat/lavalink:dev
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./application.yml:/opt/Lavalink/application.yml
|
|
|
|
- ./assets:/opt/Lavalink/assets
|
|
|
|
networks:
|
|
|
|
esmbot:
|
2021-05-11 03:59:19 +00:00
|
|
|
ipv4_address: 172.20.0.3
|
2020-12-08 02:40:17 +00:00
|
|
|
|
2021-03-18 16:19:08 +00:00
|
|
|
postgres:
|
|
|
|
container_name: postgres
|
|
|
|
image: postgres:13-alpine
|
2020-12-08 02:40:17 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2021-03-18 16:19:08 +00:00
|
|
|
- pg-data:/var/lib/postgresql/data
|
|
|
|
- ./utils/psqlinit.sh:/docker-entrypoint-initdb.d/psqlinit.sh
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: verycoolpass100
|
|
|
|
POSTGRES_USER: esmbot
|
|
|
|
POSTGRES_DB: esmbot
|
2020-12-08 02:40:17 +00:00
|
|
|
networks:
|
|
|
|
esmbot:
|
2021-05-11 03:59:19 +00:00
|
|
|
ipv4_address: 172.20.0.4
|
2020-12-08 02:40:17 +00:00
|
|
|
|
2021-03-18 16:19:08 +00:00
|
|
|
adminer:
|
|
|
|
image: adminer
|
2020-12-08 02:40:17 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
2021-03-18 16:19:08 +00:00
|
|
|
- postgres
|
2020-12-08 02:40:17 +00:00
|
|
|
ports:
|
2021-03-18 16:19:08 +00:00
|
|
|
- 8888:8080
|
2020-12-08 02:40:17 +00:00
|
|
|
networks:
|
|
|
|
esmbot:
|
2021-05-11 03:59:19 +00:00
|
|
|
ipv4_address: 172.20.0.5
|
2020-12-08 02:40:17 +00:00
|
|
|
|
|
|
|
volumes:
|
2020-12-11 22:46:05 +00:00
|
|
|
bot-help:
|
2020-12-08 02:40:17 +00:00
|
|
|
bot-temp:
|
2021-03-18 16:19:08 +00:00
|
|
|
pg-data:
|
2020-12-08 02:40:17 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
esmbot:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
config:
|
2020-12-11 22:46:05 +00:00
|
|
|
- subnet: 172.20.0.0/24
|