mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-30 21:40:12 +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: | ||||
|     image: eikek0/docspell:joex-LATEST | ||||
|     container_name: docspell-joex | ||||
|     restart: unless-stopped | ||||
|     env_file: ./.env | ||||
|     ports: | ||||
|   | ||||
| @@ -27,7 +27,8 @@ docspell.server { | ||||
| } | ||||
|  | ||||
| docspell.joex { | ||||
|   base-url = "http://joex:7878" | ||||
|   app-id = "joex-"${HOSTNAME} | ||||
|   base-url = "http://"${HOSTNAME}":7878" | ||||
|   bind { | ||||
|     address = "0.0.0.0" | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user