-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/response-passthrough'
- Loading branch information
Showing
23 changed files
with
908 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,31 +12,34 @@ services: | |
- "8080:8000" | ||
environment: | ||
# Config | ||
- FLASK_APP=app/app | ||
- FLASK_CONFIG=postgres | ||
- INTERLEAVE=True | ||
- BULK_INDEX=False | ||
- DELETE_SENT_SESSION=True | ||
- INTERVAL_DB_CHECK=3 | ||
- SESSION_EXPIRATION=6 | ||
FLASK_APP: app/app | ||
FLASK_CONFIG: postgres | ||
INTERLEAVE: True | ||
BULK_INDEX: False | ||
DELETE_SENT_SESSION: True | ||
INTERVAL_DB_CHECK: 3 | ||
SESSION_EXPIRATION: 6 | ||
|
||
# Systems | ||
- RECSYS_LIST=gesis_rec_pyterrier gesis_rec_pyserini | ||
- RECSYS_BASE=gesis_rec_pyterrier | ||
- RANKSYS_LIST=gesis_rank_pyserini_base gesis_rank_pyserini | ||
- RANKSYS_BASE=gesis_rank_pyserini_base | ||
|
||
SYSTEMS_CONFIG: | | ||
{ | ||
"gesis_rec_pyterrier": {"type": "recommender", "base": true}, | ||
"gesis_rec_pyserini": {"type": "recommender"}, | ||
"gesis_rank_pyserini_base": {"type": "ranker", "base": true}, | ||
"gesis_rank_pyserini": {"type": "recommender"}, | ||
} | ||
# Stella Server | ||
- STELLA_SERVER_ADDRESS=http://host.docker.internal:8000 | ||
- STELLA_SERVER_USER=[email protected] | ||
- STELLA_SERVER_PASS=pass | ||
- STELLA_SERVER_USERNAME=LIVIVO | ||
STELLA_SERVER_ADDRESS: http://host.docker.internal:8000 | ||
STELLA_SERVER_USER: [email protected] | ||
STELLA_SERVER_PASS: pass | ||
STELLA_SERVER_USERNAME: LIVIVO | ||
|
||
# Database | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PW=change-me | ||
- POSTGRES_DB=postgres | ||
- POSTGRES_URL=db:5430 | ||
POSTGRES_USER: postgres | ||
POSTGRES_PW: change-me | ||
POSTGRES_DB: postgres | ||
POSTGRES_URL: db:5430 | ||
|
||
command: gunicorn -w 2 --timeout 60 -b :8000 'app.app:create_app()' | ||
links: | ||
- db:db | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from flask_sqlalchemy import SQLAlchemy | ||
from flask_migrate import Migrate | ||
from flask_login import LoginManager | ||
from flask_bootstrap import Bootstrap | ||
from flask_apscheduler import APScheduler | ||
from flask_bootstrap import Bootstrap | ||
from flask_caching import Cache | ||
from flask_login import LoginManager | ||
from flask_migrate import Migrate | ||
from flask_sqlalchemy import SQLAlchemy | ||
|
||
db = SQLAlchemy() | ||
migrate = Migrate() | ||
login_manager = LoginManager() | ||
bootstrap = Bootstrap() | ||
scheduler = APScheduler() | ||
cache = Cache() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.