Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Heyheylibrary
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
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheJoeCoder
Heyheylibrary
Commits
7f68252c
Verified
Commit
7f68252c
authored
Jul 5, 2024
by
TheJoeCoder
Browse files
Options
Downloads
Patches
Plain Diff
Create demo docker compose
parent
8c5d66cb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.demo.yml
+56
-0
56 additions, 0 deletions
docker-compose.demo.yml
with
56 additions
and
0 deletions
docker-compose.demo.yml
0 → 100644
+
56
−
0
View file @
7f68252c
services
:
web
:
build
:
.
command
:
gunicorn heyheyLibrary.wsgi:application --bind 0.0.0.0:8000
environment
:
-
DJANGO_ALLOWED_HOSTS=librarydemo.rb9.xyz
-
OPENSEARCH_USERNAME=admin
-
OPENSEARCH_PASSWORD=VeryInsecurePassword1!
volumes
:
-
demo_static:/home/app/web/staticfiles
-
demo_media:/home/app/web/mediafiles
-
./db.sqlite3:/home/app/web/db.sqlite3
expose
:
-
8000
depends_on
:
-
opensearch
networks
:
-
librarydemo
opensearch
:
image
:
opensearchproject/opensearch:latest
ulimits
:
memlock
:
soft
:
-1
# Set memlock to unlimited (no soft or hard limit)
hard
:
-1
nofile
:
soft
:
65536
# Maximum number of open files for the opensearch user - set to at least 65536
hard
:
65536
volumes
:
-
demo_opensearch:/usr/share/opensearch/data
# Creates volume called opensearch-data1 and mounts it to the container
expose
:
-
9200
-
9600
networks
:
-
librarydemo
nginx
:
image
:
nginx:1.27
volumes
:
-
./nginx.conf:/etc/nginx/nginx.conf:ro
-
demo_static:/home/app/web/staticfiles
-
demo_media:/home/app/web/mediafiles
ports
:
-
1337:80
depends_on
:
-
web
networks
:
-
librarydemo
volumes
:
demo_static
:
demo_media
:
demo_opensearch
:
networks
:
librarydemo
:
\ No newline at end of file
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
sign in
to comment