Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
Improvements for docker-compose.yml
Added gym images dir to volumes
Added custom dir to volumes
Changed config dir to only config.json, so default files like default-config.json from docker image are used
Added container-names
Updated mariadb to 10.11
  • Loading branch information
Chefkeks authored Apr 23, 2024
1 parent 7659df0 commit 23bd489
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
version: "3.7"

services:
raidbot:
container_name: raidbot
ports:
- 8088:80
depends_on:
- raidbot-db
restart: always
volumes:
# These are just example paths, change them to where you have stored the data!
- ./PokemonRaidBot/config/:/var/www/html/config/
- ./PokemonRaidBot/access/:/var/www/html/access/
- ./PokemonRaidBot/config/config.json:/var/www/html/config/config.json
- ./PokemonRaidBot/custom/:/var/www/html/custom/
- ./PokemonRaidBot/images/gyms/:/var/www/html/images/gyms
- ./PokemonRaidBot/images/pokemon_PokeMiners/:/var/www/html/images/pokemon_PokeMiners
- ./tg-logs/:/var/log/tg-bots/
environment:
Expand All @@ -26,7 +27,8 @@ services:
ofelia.job-exec.raidbot-overview.command: /usr/bin/curl -s -k -d '{"callback_query":{"data":"0:overview_refresh:0"}}' https://raidbot.example.com/index.php?apikey=changeme

raidbot-db:
image: mariadb:10.3
container_name: raidbot-db
image: mariadb:10.11
restart: always
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
volumes:
Expand All @@ -41,6 +43,7 @@ services:
MYSQL_PASSWORD:

ofelia:
container_name: raidbot-ofelia
image: mcuadros/ofelia:latest
depends_on:
- raidbot
Expand Down

0 comments on commit 23bd489

Please sign in to comment.