forked from Ninjasoturi/PokemonRaidBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.4"
services:
raidbot:
build:
context: ./PokemonRaidBot/
ports:
- 8088:80
depends_on:
- raidbot-db
restart: always
volumes:
- ./PokemonRaidBot/config/:/var/www/html/config/
- ./PokemonRaidBot/access/:/var/www/html/access/
- ./PokemonRaidBot/custom/:/var/www/html/custom/
- ./PokemonRaidBot/images/pokemon/:/var/www/html/images/pokemon/
- ./tg-logs/:/var/log/tg-bots/
environment:
# Cleanup-Job every 5 min. https://github.com/florianbecker/PokemonRaidBot#cleanup
CRON_USER_1: root
CRON_SCHEDULE_1: */5 * * * *
CRON_COMMAND_1: /usr/bin/curl -s -k -d '{"cleanup":{"secret":"changeme"}}' http://localhost/index.php?apikey=changeme
# Raid-Overview Update every minute https://github.com/florianbecker/PokemonRaidBot#raid-overview
CRON_USER_2: root
CRON_SCHEDULE_2: * * * * *
CRON_COMMAND_2: /usr/bin/curl -s -k -d '{"callback_query":{"data":"0:overview_refresh:0"}}' http://localhost/index.php?apikey=changeme
TEMPLATE_PHP_INI: production
PHP_INI_EXTENSION: gd
raidbot-db:
image: mariadb:10.3
restart: always
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
volumes:
- ./raidbot-db/:/var/lib/mysql/
- ./sql/:/docker-entrypoint-initdb.d/
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: raidbot
MYSQL_USER: changeme
MYSQL_PASSWORD: changeme