Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Docker
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kontr 2.0
Docker
Commits
1a2090a9
There was an error fetching the commit references. Please try again later.
Verified
Commit
1a2090a9
authored
5 years ago
by
Peter Stanko
Browse files
Options
Downloads
Patches
Plain Diff
Env extracted
parent
a4afe7e0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
platform/docker-compose.yml
+19
-1
19 additions, 1 deletion
platform/docker-compose.yml
platform/envs/portal.env
+2
-3
2 additions, 3 deletions
platform/envs/portal.env
platform/envs/worker.env
+5
-8
5 additions, 8 deletions
platform/envs/worker.env
with
26 additions
and
12 deletions
platform/docker-compose.yml
+
19
−
1
View file @
1a2090a9
...
...
@@ -11,6 +11,7 @@ services:
environment
:
DB_USER
:
${DB_USER}
DB_PASSWORD
:
$DB_PASSWORD
CELERY_BROKER_URL
:
'
redis://redis:6379/0'
SQLALCHEMY_DATABASE_URI
:
"
postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_DB}"
LOG_LEVEL_GLOBAL
:
${LOG_LEVEL_GLOBAL}
GITPYTHON_CUSTOM_SSH_KEY
:
${SSH_KEY}
...
...
@@ -32,6 +33,7 @@ services:
env_file
:
-
envs/portal.env
environment
:
CELERY_BROKER_URL
:
'
redis://redis:6379/0'
SQLALCHEMY_DATABASE_URI
:
"
postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_DB}"
LOG_LEVEL_GLOBAL
:
${LOG_LEVEL_GLOBAL}
GITPYTHON_CUSTOM_SSH_KEY
:
${SSH_KEY}
...
...
@@ -84,6 +86,9 @@ services:
env_file
:
-
envs/worker.env
environment
:
CELERY_BROKER_URL
:
'
redis://redis:6379/1'
WORKER_REDIS_HOST
:
'
redis'
PORTAL_URL
:
'
http://portal:8000'
LOG_LEVEL_GLOBAL
:
${LOG_LEVEL_GLOBAL}
depends_on
:
...
...
@@ -98,10 +103,23 @@ services:
celery-worker
:
image
:
'
kontr2/worker'
privileged
:
true
command
:
"
celery
worker
--loglevel=DEBUG
-A
app.celery"
command
:
>
/bin/sh -c "
while ! nc -z portal 8000;
do
echo 'Sleeping';
sleep 1;
done;
echo 'Connected!';
celery worker --loglevel=DEBUG -A app.celery
"
env_file
:
-
envs/worker.env
environment
:
CELERY_BROKER_URL
:
'
redis://redis:6379/1'
WORKER_REDIS_HOST
:
'
redis'
PORTAL_URL
:
'
http://portal:8000'
LOG_LEVEL_GLOBAL
:
${LOG_LEVEL_GLOBAL}
depends_on
:
...
...
This diff is collapsed.
Click to expand it.
platform/envs/portal.env
+
2
−
3
View file @
1a2090a9
CELERY_BROKER_URL: "redis://redis:6379/0"
PORTAL_DATA_WORKER_DOMAIN: 'kontr-worker'
FLASK_ENV: 'development'
PORTAL_DATA_WORKER_DOMAIN=kontr-worker
FLASK_ENV=development
This diff is collapsed.
Click to expand it.
platform/envs/worker.env
+
5
−
8
View file @
1a2090a9
WORKER_NAME: 'executor'
SECRET_KEY: 'you-will-never-guess'
CELERY_BROKER_URL: 'redis://redis:6379/1'
WORKER_REDIS_HOST: 'redis'
PORTAL_URL: 'http://portal:8000'
WORKER_CLEAN_SUBMISSION_FILES: 'True'
WORKER_CLEAN_SUBMISSION_CONTAINER: 'True'
FLASK_ENV: 'development'
WORKER_NAME=executor
SECRET_KEY=you-will-never-guess
WORKER_CLEAN_SUBMISSION_FILES=True
WORKER_CLEAN_SUBMISSION_CONTAINER=True
FLASK_ENV=development
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