Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
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
AlekSIS®
Official
AlekSIS-Core
Commits
a72f9f41
Verified
Commit
a72f9f41
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable.
parent
0e0d88c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yaml
+1
-1
1 addition, 1 deletion
docker-compose.yaml
docker/entrypoint.sh
+3
-14
3 additions, 14 deletions
docker/entrypoint.sh
with
4 additions
and
15 deletions
docker-compose.yaml
+
1
−
1
View file @
a72f9f41
...
...
@@ -21,7 +21,7 @@ services:
environment
:
-
BISCUIT_http__allowed_hosts="['*']"
-
BISCUIT_caching__memcached__address=memcached:11211
-
BISCUIT_databae__host=db
-
BISCUIT_databa
s
e__host=db
depends_on
:
-
db
-
memcached
...
...
This diff is collapsed.
Click to expand it.
docker/entrypoint.sh
+
3
−
14
View file @
a72f9f41
#!/bin/bash
GUNICORN_BIND
=
${
GUNICORN_BIND
:-
0
.0.0.0
:8000
}
POSTGRES_HOST
=
${
POSTGRES_HOST
:-
127
.0.0.1
}
POSTGRES_PORT
=
${
POSTGRES_PORT
:-
5432
}
POSTGRES_DB
=
${
POSTGRES_DB
:-
biscuit
}
POSTGRES_USER
=
${
POSTGRES_USER
:-
biscuit
}
export
BISCUIT_database__host
=
${
BISCUIT_database__host
:-
$POSTGRES_HOST
}
export
BISCUIT_database__port
=
${
BISCUIT_database__port
:-
$POSTGRES_PORT
}
export
BISCUIT_database__name
=
${
BISCUIT_database__name
:-
$POSTGRES_DB
}
export
BISCUIT_database__user
=
${
BISCUIT_database__user
:-
$POSTGRES_USER
}
export
BISCUIT_database__password
=
${
BISCUIT_database__password
:-
$POSTGRES_PASSWORD
}
export
BISCUIT_database__host
=
${
BISCUIT_database__host
:-
127
.0.0.1
}
export
BISCUIT_database__port
=
${
BISCUIT_database__port
:-
5432
}
if
[[
-z
$BISCUIT_secret_key
]]
;
then
if
[[
!
-e
/etc/biscuit/secret_key
]]
;
then
...
...
@@ -27,8 +20,4 @@ done
python manage.py flush
--no-input
python manage.py migrate
if
[[
-n
"
$@
"
]]
;
then
exec
"
$@
"
else
exec
gunicorn biscuit.core.wsgi
--bind
${
GUNICORN_BIND
}
fi
exec
gunicorn biscuit.core.wsgi
--bind
${
GUNICORN_BIND
}
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