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
43da353e
Commit
43da353e
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Update docker-compose definitions.
parent
e919c49a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
docker-compose.yaml
+46
-0
46 additions, 0 deletions
docker-compose.yaml
docker/nginx/Dockerfile
+8
-0
8 additions, 0 deletions
docker/nginx/Dockerfile
docker/nginx/nginx.conf
+26
-0
26 additions, 0 deletions
docker/nginx/nginx.conf
with
81 additions
and
1 deletion
Dockerfile
+
1
−
1
View file @
43da353e
FROM
python:3.8-buster
65;5402;1c
ENV
PYTHONUNBUFFERED=1
ENV
PYTHONDONTWRITEBYTECODE 1
ENV
PIP_DEFAULT_TIMEOUT=100
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yaml
0 → 100644
+
46
−
0
View file @
43da353e
version
:
'
3'
services
:
db
:
image
:
postgres:latest
volumes
:
-
postgres_data:/var/lib/postgresql/data/
environment
:
-
POSTGRES_USER=biscuit
-
POSTGRES_PASSWORD=biscuit
-
POSTGRES_DB=biscuit
memcached
:
image
:
memcached:latest
app
:
build
:
.
volumes
:
-
biscuit_media:/srv/media
-
biscuit_static:/srv/static
-
biscuit_backups:/var/backups/biscuit
-
javascript:/usr/share/javascript
environment
:
-
BISCUIT_secret_key=DoNotUseInProduction
-
BISCUIT_http.allowed_hosts="['*']"
-
BISCUIT_database.host=db
-
BISCUIT_database.password=biscuit
-
BISCUIT_caching.memcached.address=memcached:11211
depends_on
:
-
db
-
memcached
web
:
build
:
./docker/nginx
volumes
:
-
biscuit_media:/srv/media
-
biscuit_static:/srv/static
-
javascript:/srv/javascript
ports
:
-
8080:80
depends_on
:
-
app
volumes
:
postgres_data
:
biscuit_media
:
biscuit_static
:
biscuit_backups
:
javascript
:
This diff is collapsed.
Click to expand it.
docker/nginx/Dockerfile
0 → 100644
+
8
−
0
View file @
43da353e
FROM
nginx
RUN
rm
/etc/nginx/conf.d/default.conf
COPY
nginx.conf /etc/nginx/conf.d
RUN
mkdir
/srv/media
RUN
mkdir
/srv/static
RUN
mkdir
/srv/javascript
This diff is collapsed.
Click to expand it.
docker/nginx/nginx.conf
0 → 100644
+
26
−
0
View file @
43da353e
upstream
biscuit
{
server
app
:
8000
;
}
server
{
listen
80
;
location
/
{
proxy_pass
http://biscuit
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header
Host
$host
;
proxy_redirect
off
;
}
location
/media/
{
alias
/srv/media/
;
}
location
/static/
{
alias
/srv/static/
;
}
location
/javascript/
{
alias
/srv/javascript/
;
}
}
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