Some docker-compose fixes
This commit is contained in:
		
							parent
							
								
									9788314868
								
							
						
					
					
						commit
						28c61213f2
					
				
					 2 changed files with 14 additions and 5 deletions
				
			
		| 
						 | 
					@ -10,17 +10,20 @@ services:
 | 
				
			||||||
      - ./logs:/home/esmBot/.internal/logs
 | 
					      - ./logs:/home/esmBot/.internal/logs
 | 
				
			||||||
      - ./bot-help:/home/esmBot/help
 | 
					      - ./bot-help:/home/esmBot/help
 | 
				
			||||||
      - ./bot-temp:/home/esmBot/temp
 | 
					      - ./bot-temp:/home/esmBot/temp
 | 
				
			||||||
      - ./config/servers.json:/home/esmBot/.internal/config/servers.json
 | 
					      - ./config:/home/esmBot/.internal/config
 | 
				
			||||||
    env_file:
 | 
					    env_file:
 | 
				
			||||||
      - .env
 | 
					      - .env
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      OUTPUT: /home/esmBot/help/help.md
 | 
					      OUTPUT: /home/esmBot/help/help.md
 | 
				
			||||||
      TEMPDIR: /home/esmBot/temp
 | 
					      TEMPDIR: /home/esmBot/temp
 | 
				
			||||||
 | 
					    user: root
 | 
				
			||||||
    links:
 | 
					    links:
 | 
				
			||||||
      - lavalink
 | 
					      - lavalink
 | 
				
			||||||
    depends_on:
 | 
					    depends_on:
 | 
				
			||||||
      - lavalink
 | 
					      lavalink:
 | 
				
			||||||
      - postgres
 | 
					        condition: service_healthy
 | 
				
			||||||
 | 
					      postgres:
 | 
				
			||||||
 | 
					        condition: service_started
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
      esmbot:
 | 
					      esmbot:
 | 
				
			||||||
| 
						 | 
					@ -33,6 +36,12 @@ services:
 | 
				
			||||||
    volumes:
 | 
					    volumes:
 | 
				
			||||||
      - ./application.yml:/opt/Lavalink/application.yml
 | 
					      - ./application.yml:/opt/Lavalink/application.yml
 | 
				
			||||||
      - ./assets:/opt/Lavalink/assets
 | 
					      - ./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:
 | 
					    networks:
 | 
				
			||||||
      esmbot:
 | 
					      esmbot:
 | 
				
			||||||
        ipv4_address: 172.20.0.3
 | 
					        ipv4_address: 172.20.0.3
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,11 +8,11 @@ cd ~
 | 
				
			||||||
git clone --recurse-submodules https://github.com/esmBot/esmBot
 | 
					git clone --recurse-submodules https://github.com/esmBot/esmBot
 | 
				
			||||||
cd 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
 | 
					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
 | 
					```json
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "lava": [
 | 
					  "lava": [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue