mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Add new config option. DOCKER_NETWORK_NAME
This commit is contained in:
parent
399d41dd08
commit
2ead38bbe4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user