diff --git a/README.md b/README.md index 58669cf..3cb3510 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,10 @@ Cool audiobot for Discord created by @Ale - Localization (English and Russian are currently supported) - Command /alcotest which shows your alcohol count in blood - Go to [Wiki](https://github.com/AlexInCube/AlCoTest/wiki) to get more information about features, commands, and others. + +## 🐛 Bugs or problems + +If you have issues, try to update your `docker-compose.yml`, `updateAndRunInDocker.sh` files. +And run `sh updateAndRunInDocker.sh`. +If bugs are persisted on the latest version of bot, +please create [issue](https://github.com/AlexInCube/AlCoTest/issues/new/choose). diff --git a/docker-compose.yml b/docker-compose.yml index 1d4c773..4ddda7f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - path: ./.env.development required: false volumes: - - ./data:/data/db + - "aicbot-mongo-volume:/data/db" ports: - '27017:27017' aicbot: @@ -38,3 +38,7 @@ services: - aicbot-mongo depends_on: - aicbot-mongo + +volumes: + aicbot-mongo-volume: + external: true diff --git a/updateAndRunInDocker.sh b/updateAndRunInDocker.sh index 96b6b0c..a818b48 100644 --- a/updateAndRunInDocker.sh +++ b/updateAndRunInDocker.sh @@ -1,3 +1,5 @@ #!/bin/sh docker image pull alexincube/aicotest:latest -docker compose up --detach --force-recreate --no-build --remove-orphans +docker volume create --name=aicbot-mongo-volume +docker compose stop +docker compose up --detach --no-build --remove-orphans