Skip to content
Snippets Groups Projects
Commit 5265c23e authored by Benjamin Ledel's avatar Benjamin Ledel
Browse files

Merge branch 'main' of git.rwth-aachen.de:polaris/entwicklung/deployment

parents ff43cb09 85a09495
No related branches found
No related tags found
No related merge requests found
Pipeline #1644437 failed
LICENSE 0 → 100644
MIT License
Copyright (c) 2023 Polaris / Entwicklung
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
DYNACONF_SQLALCHEMY_DATABASE_URI=postgresql://postgres:CHANGE_ME@database/analytics-engine DYNACONF_SQLALCHEMY_DATABASE_URI=postgresql://postgres:CHANGE_ME@database/analytics-engine # the password should match with POSTGRES_PASSWORD
DYNACONF_CELERY_BROKER_URL=redis://:CHANGE_ME@redis_db:6379/0 DYNACONF_CELERY_BROKER_URL=redis://:CHANGE_ME@redis_db:6379/0 # the password should match with the REDIS_PASSWORD
DYNACONF_CELERY_RESULT_BACKEND=redis://:CHANGE_ME@redis_db:6379/1 DYNACONF_CELERY_RESULT_BACKEND=redis://:CHANGE_ME@redis_db:6379/1 # the password should match with the REDIS_PASSWORD
DYNACONF_ANALYTICS_BACKEND_URL=http://scheduler:5000 DYNACONF_ANALYTICS_BACKEND_URL=http://scheduler:5000 # no changes needed
DYNACONF_RIGHTS_ENGINE_BACKEND_URL=http://localhost:80/ DYNACONF_RIGHTS_ENGINE_BACKEND_URL=http://localhost:80/ # url of the rights engine
WEBSITE=analytics WEBSITE=analytics # traefik configuration
URL=$DEPLOYMENT_URL URL=$DEPLOYMENT_URL # traefik configuration
REDIS_PASSWORD=CHANGE_ME REDIS_PASSWORD=CHANGE_ME
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_DATABASE=analytics-engine POSTGRES_DATABASE=analytics-engine
......
...@@ -20,7 +20,7 @@ services: ...@@ -20,7 +20,7 @@ services:
scheduler: scheduler:
user: "${UID}:${GID}" user: "${UID}:${GID}"
image: registry.git.rwth-aachen.de/polaris/analytics-engine/scheduler:latest image: registry.git.rwth-aachen.de/polaris/entwicklung/analytics-engine/scheduler:latest
restart: unless-stopped restart: unless-stopped
expose: expose:
- 8000 - 8000
...@@ -42,7 +42,7 @@ services: ...@@ -42,7 +42,7 @@ services:
beat: beat:
user: "${UID}:${GID}" user: "${UID}:${GID}"
image: registry.git.rwth-aachen.de/polaris/analytics-engine/scheduler:latest image: registry.git.rwth-aachen.de/polaris/entwicklung/analytics-engine/scheduler:latest
restart: unless-stopped restart: unless-stopped
entrypoint: celery entrypoint: celery
command: -A scheduler.worker beat -l info --scheduler celery_sqlalchemy_scheduler.schedulers:DatabaseScheduler command: -A scheduler.worker beat -l info --scheduler celery_sqlalchemy_scheduler.schedulers:DatabaseScheduler
...@@ -57,7 +57,7 @@ services: ...@@ -57,7 +57,7 @@ services:
worker: worker:
user: "${UID}:${GID}" user: "${UID}:${GID}"
image: registry.git.rwth-aachen.de/polaris/analytics-engine/scheduler:latest image: registry.git.rwth-aachen.de/polaris/entwicklung/analytics-engine/scheduler:latest
restart: unless-stopped restart: unless-stopped
entrypoint: celery entrypoint: celery
command: -A scheduler.worker worker -l info command: -A scheduler.worker worker -l info
......
URL=localhost URL=localhost # url of the installation for traefik
WEBSITE=polaris WEBSITE=polaris
DB_PASSWORD=CHANGE_ME DB_PASSWORD=CHANGE_ME # this should be the same as DATABASE_PASSWORD
DJANGO_DEVELOPMENT=false DJANGO_DEVELOPMENT=false # production should be false
DATABASE_NAME=polaris DATABASE_NAME=polaris
DATABASE_USER=root DATABASE_USER=root
DATABASE_PASSWORD=CHANGE_ME DATABASE_PASSWORD=CHANGE_ME # this should be the same as DB_PASSWORD
DATABASE_HOST=database DATABASE_HOST=database
DEBUG=False DEBUG=False
LRS_HOST=http://learninglocker.digitallearning.gmbh:8080 LRS_HOST=http://sample.com:8080 # not needed, if you use mongodb
LRS_TOKEN=CHANGE_ME LRS_TOKEN=CHANGE_ME # not needed, if you use mongodb
LRS_CONNECTION_STRING=mongodb://root:CHANGE_ME@127.0.0.1:27017 LRS_CONNECTION_STRING=mongodb://root:CHANGE_ME@127.0.0.1:27017 # connection string to the mongodb
LRS_MONGO_DB_NAME=lrs LRS_MONGO_DB_NAME=lrs # no changes needed
DATA_DISCLOSURE_EXPIRATION=30 DATA_DISCLOSURE_EXPIRATION=30 # number of days the data disclosures are deleted
DATA_DISCLOSURE_LOCATION=/usr/src/app/backend/data_disclosure_zips DATA_DISCLOSURE_LOCATION=/usr/src/app/backend/data_disclosure_zips # folder of the data disclosures in the docker container, no changes needed
EMAIL_HOST= EMAIL_HOST= # host for email notification account
EMAIL_PORT= EMAIL_PORT= # port for email notification account
EMAIL_HOST_USER= EMAIL_HOST_USER= # username for email notification account
EMAIL_HOST_PASSWORD= EMAIL_HOST_PASSWORD= # password for email notification account
REDIS_PASSWORD=CHANGE_ME REDIS_PASSWORD=CHANGE_ME # redis password
CELERY_BROKER_URL=redis://:CHANGE_ME@redis:6379/0 CELERY_BROKER_URL=redis://:CHANGE_ME@redis:6379/0 # change redis connection string to match REDIS_PASSWORD
JWT_PUBLIC_KEY_PATH=backend/id_rsa.pub JWT_PUBLIC_KEY_PATH=backend/id_rsa.pub # path for jwt public key; see documentation
JWT_PRIVATE_KEY_PATH=backend/id_rsa JWT_PRIVATE_KEY_PATH=backend/id_rsa # path for the jwt private key; see documentation
IDP_SERVER=https://aai-test-v3.ruhr-uni-bochum.de IDP_SERVER=https://aai-test-v3.ruhr-uni-bochum.de # shibboleth url
IDP_ENABLED=false IDP_ENABLED=false # login via shibboleth
SP_HOST=polaris.digitallearning.gmbh SP_HOST=polaris.digitallearning.gmbh # redirect back url of the shibboleth
ANONYMIZATION_HASH_PREFIX=anon PROVIDER_CONTEXTS_PULL_ENABLED=False # if you like to use the feature, that courses or structures are pulled from moodle, enable that option here
ANONYMIZATION_DEFAULT_MINIMUM_COUNT=10 PROVIDER_CONTEXTS_PULL_URL=https://example.com # url of moodle
PROVIDER_CONTEXTS_PULL_TOKEN=CHANGE_ME # token of the moodle plugin
...@@ -20,7 +20,7 @@ services: ...@@ -20,7 +20,7 @@ services:
- internal - internal
rights-engine: rights-engine:
image: registry.git.rwth-aachen.de/polaris/rights-engine/rights-engine image: registry.git.rwth-aachen.de/polaris/entwicklung/rights-engine/rights-engine:latest
restart: unless-stopped restart: unless-stopped
expose: expose:
- 80 - 80
...@@ -45,7 +45,7 @@ services: ...@@ -45,7 +45,7 @@ services:
- "./data_disclosure_zips/:/usr/src/app/backend/data_disclosure_zips" - "./data_disclosure_zips/:/usr/src/app/backend/data_disclosure_zips"
beat: beat:
image: registry.git.rwth-aachen.de/polaris/rights-engine/rights-engine image: registry.git.rwth-aachen.de/polaris/entwicklung/rights-engine/rights-engine:latest
restart: unless-stopped restart: unless-stopped
entrypoint: celery entrypoint: celery
command: -A backend beat -l info command: -A backend beat -l info
...@@ -63,7 +63,7 @@ services: ...@@ -63,7 +63,7 @@ services:
- "./id_rsa:/usr/src/app/backend/id_rsa" - "./id_rsa:/usr/src/app/backend/id_rsa"
worker: worker:
image: registry.git.rwth-aachen.de/polaris/rights-engine/rights-engine image: registry.git.rwth-aachen.de/polaris/entwicklung/rights-engine/rights-engine:latest
restart: unless-stopped restart: unless-stopped
entrypoint: celery entrypoint: celery
command: -A backend worker --loglevel=debug command: -A backend worker --loglevel=debug
......
...@@ -137,7 +137,7 @@ services: ...@@ -137,7 +137,7 @@ services:
- "./configuration:/app/configuration" - "./configuration:/app/configuration"
dashboard: dashboard:
image: registry.git.rwth-aachen.de/polaris/dashboard-example/dashboard-example:latest image: registry.git.rwth-aachen.de/polaris/entwicklung/dashboard-example/dashboard-example:latest
restart: always restart: always
ports: ports:
- 8005:80 - 8005:80
......
...@@ -137,7 +137,7 @@ services: ...@@ -137,7 +137,7 @@ services:
- "./configuration:/app/configuration" - "./configuration:/app/configuration"
dashboard: dashboard:
image: registry.git.rwth-aachen.de/polaris/dashboard-example/dashboard-example:latest image: registry.git.rwth-aachen.de/polaris/entwicklung/dashboard-example/dashboard-example:latest
restart: always restart: always
ports: ports:
- 8005:80 - 8005:80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment