Some docker-compose fixes

This commit is contained in:
Essem 2022-09-06 16:00:02 -05:00
parent 9788314868
commit 28c61213f2
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
2 changed files with 14 additions and 5 deletions

View file

@ -10,17 +10,20 @@ services:
- ./logs:/home/esmBot/.internal/logs
- ./bot-help:/home/esmBot/help
- ./bot-temp:/home/esmBot/temp
- ./config/servers.json:/home/esmBot/.internal/config/servers.json
- ./config:/home/esmBot/.internal/config
env_file:
- .env
environment:
OUTPUT: /home/esmBot/help/help.md
TEMPDIR: /home/esmBot/temp
user: root
links:
- lavalink
depends_on:
- lavalink
- postgres
lavalink:
condition: service_healthy
postgres:
condition: service_started
networks:
esmbot:
@ -33,6 +36,12 @@ services:
volumes:
- ./application.yml:/opt/Lavalink/application.yml
- ./assets:/opt/Lavalink/assets
healthcheck:
test: "curl -H \"Authorization: $$(cat /opt/Lavalink/application.yml | grep password: | sed 's/^ *password: //g' | tr -d '\"')\" -f http://localhost:2333/version"
interval: 10s
timeout: 10s
retries: 5
start_period: 10s
networks:
esmbot:
ipv4_address: 172.20.0.3

View file

@ -8,11 +8,11 @@ cd ~
git clone --recurse-submodules https://github.com/esmBot/esmBot
cd esmBot
```
Modify the `.env` file as described in step 5 of the manual setup. Make sure to change the `DB` option to this, however:
Modify the `.env` file as described in step 7 of the manual setup. Make sure to change the `DB` option to this, however:
```
DB=postgresql://esmbot:verycoolpass100@postgres:5432/esmbot
```
You should then modify the `servers.json` file to change the IP addresses of the servers to match the Docker containers. Example:
You should then modify the `config/servers.json` file to change the IP addresses of the servers to match the Docker containers. Example:
```json
{
"lava": [