Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIRST_START
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Polaris
FIRST_START
Commits
5db63091
Commit
5db63091
authored
2 years ago
by
Benjamin Ledel
Browse files
Options
Downloads
Patches
Plain Diff
* local compose
parent
9d8ca5ad
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+6
-0
6 additions, 0 deletions
.gitignore
single-compose/docker-compose.yml
+14
-49
14 additions, 49 deletions
single-compose/docker-compose.yml
with
20 additions
and
49 deletions
.gitignore
+
6
−
0
View file @
5db63091
...
...
@@ -5,3 +5,9 @@ rights-engine/db/*
mongodb/mongodb_data/*
mongodb/.env
analytics-engine/.env
single-compose/db/*
single-compose/.env
single-compose/mongodb_data
single-compose/data_disclosure_zips
single-compose/id_rsa
single-compose/id_rsa.pub
\ No newline at end of file
This diff is collapsed.
Click to expand it.
single-compose/docker-compose.yml
+
14
−
49
View file @
5db63091
services
:
#
# MONGO DB
# MONGO DB
mongodb_container
:
image
:
mongo:6
environment
:
...
...
@@ -10,39 +10,28 @@ services:
volumes
:
-
./mongodb_data:/data/db
#
# RIGHTS ENGINE
# RIGHTS ENGINE
database
:
image
:
mariadb:10.6
restart
:
unless-stopped
environment
:
MYSQL_ROOT_PASSWORD
:
${DB_PASSWORD}
MYSQL_DATABASE
:
polaris
networks
:
-
internal
volumes
:
-
./db:/var/lib/mysql
labels
:
-
traefik.enable=false
redis_db
:
image
:
redis:7-alpine
restart
:
unless-stopped
command
:
redis-server --requirepass ${REDIS_PASSWORD}
networks
:
-
internal
rights-engine
:
image
:
registry.digitallearning.gmbh/polaris/rights-engine/rights-engine:latest
restart
:
unless-stopped
expose
:
-
80
ports
:
-
80:80
-
80
04
:80
environment
:
-
CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis_db:6379
networks
:
-
internal
-
web
depends_on
:
-
database
-
redis_db
...
...
@@ -59,9 +48,6 @@ services:
command
:
-A backend beat -l info
environment
:
-
CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis_db:6379
networks
:
-
internal
-
web
depends_on
:
-
database
-
redis_db
...
...
@@ -77,9 +63,6 @@ services:
command
:
-A backend worker --loglevel=debug
environment
:
-
CELERY_BROKER_URL=redis://:${REDIS_PASSWORD}@redis_db:6379
networks
:
-
internal
-
web
depends_on
:
-
database
-
redis_db
...
...
@@ -90,37 +73,27 @@ services:
-
"
./id_rsa:/usr/src/app/backend/id_rsa"
-
"
./data_disclosure_zips/:/usr/src/app/backend/data_disclosure_zips"
## Analytics Engine
database_analytics
:
image
:
postgres:15.1-alpine
restart
:
unless-stopped
environment
:
-
POSTGRES_DB=${POSTGRES_DATABASE}
-
POSTGRES_USER=${POSTGRES_USER}
-
POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes
:
-
./db/production:/var/lib/postgresql/data
networks
:
-
internal
# Analytics Engine
database_analytics
:
image
:
postgres:15.1-alpine
restart
:
unless-stopped
environment
:
-
POSTGRES_DB=${POSTGRES_DATABASE}
-
POSTGRES_USER=${POSTGRES_USER}
-
POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes
:
-
./database_analytics/production:/var/lib/postgresql/data
redis_db_anayltics
:
image
:
redis:7-alpine
restart
:
unless-stopped
command
:
redis-server --requirepass ${REDIS_PASSWORD}
networks
:
-
internal
scheduler
:
image
:
registry.digitallearning.gmbh/polaris/analytics-engine/scheduler:latest
restart
:
unless-stopped
expose
:
-
8000
ports
:
-
8000:8000
networks
:
-
internal
-
web
depends_on
:
-
database
-
redis_db_anayltics
...
...
@@ -133,8 +106,6 @@ services:
restart
:
unless-stopped
entrypoint
:
celery
command
:
-A scheduler.worker beat -l info --scheduler celery_sqlalchemy_scheduler.schedulers:DatabaseScheduler
networks
:
-
internal
depends_on
:
-
database_analytics
-
redis_db_anayltics
...
...
@@ -147,8 +118,6 @@ services:
restart
:
unless-stopped
entrypoint
:
celery
command
:
-A scheduler.worker worker -l info
networks
:
-
internal
depends_on
:
-
database_analytics
-
redis_db_anayltics
...
...
@@ -156,8 +125,4 @@ services:
volumes
:
-
"
.env:/app/.env"
-
"
./configuration:/app/configuration"
networks
:
web
:
external
:
true
internal
:
external
:
false
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment