mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add new config option. DOCKER_NETWORK_NAME
This commit is contained in:
		@@ -143,7 +143,7 @@ def _create_cqpserver_container(corpus):
 | 
			
		||||
    ''' ## Name ## '''
 | 
			
		||||
    name = f'cqpserver_{corpus.id}'
 | 
			
		||||
    ''' ## Network ## '''
 | 
			
		||||
    network = 'nopaque_default'
 | 
			
		||||
    network = f'{current_app.config["DOCKER_NETWORK_NAME"]}'
 | 
			
		||||
    ''' ## Volumes ## '''
 | 
			
		||||
    volumes = []
 | 
			
		||||
    ''' ### Corpus data volume ### '''
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,9 @@ load_dotenv(os.path.join(basedir, '.env'))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Config:
 | 
			
		||||
    ''' Docker '''
 | 
			
		||||
    DOCKER_NETWORK_NAME = os.environ.get('DOCKER_NETWORK_NAME', 'nopaque_default')
 | 
			
		||||
 | 
			
		||||
    ''' APIFairy '''
 | 
			
		||||
    APIFAIRY_TITLE = 'nopaque'
 | 
			
		||||
    APIFAIRY_VERSION = '0.0.1'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,9 @@
 | 
			
		||||
version: "3.5"
 | 
			
		||||
 | 
			
		||||
networks:
 | 
			
		||||
  default:
 | 
			
		||||
    name: "${DOCKER_NETWORK_NAME:-nopaque_default}"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  db:
 | 
			
		||||
    env_file: db.env
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user