mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-03 18:00:11 +00:00 
			
		
		
		
	Allow scaling joex with docker-compose up --scale
				
					
				
			Container name can't be hard coded and each joex instance needs a unique name. Since Docker always sets the `HOSTNAME` variable and these are unique, we can just interpolate the hostname into the joex app identifier, to avoid creating multiple config files.
This commit is contained in:
		@@ -15,7 +15,6 @@ services:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  joex:
 | 
					  joex:
 | 
				
			||||||
    image: eikek0/docspell:joex-LATEST
 | 
					    image: eikek0/docspell:joex-LATEST
 | 
				
			||||||
    container_name: docspell-joex
 | 
					 | 
				
			||||||
    restart: unless-stopped
 | 
					    restart: unless-stopped
 | 
				
			||||||
    env_file: ./.env
 | 
					    env_file: ./.env
 | 
				
			||||||
    ports:
 | 
					    ports:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,7 +27,8 @@ docspell.server {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
docspell.joex {
 | 
					docspell.joex {
 | 
				
			||||||
  base-url = "http://joex:7878"
 | 
					  app-id = "joex-"${HOSTNAME}
 | 
				
			||||||
 | 
					  base-url = "http://"${HOSTNAME}":7878"
 | 
				
			||||||
  bind {
 | 
					  bind {
 | 
				
			||||||
    address = "0.0.0.0"
 | 
					    address = "0.0.0.0"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user