Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
New DP service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Yorgo EL MOUBAYED
New DP service
Commits
5e96dfc4
Commit
5e96dfc4
authored
3 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Group docker related files
parent
43ecd2d6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/.dockerignore
+3
-0
3 additions, 0 deletions
docker/.dockerignore
docker/Dockerfile
+22
-0
22 additions, 0 deletions
docker/Dockerfile
docker/docker-compose.yml
+43
-0
43 additions, 0 deletions
docker/docker-compose.yml
with
68 additions
and
0 deletions
docker/.dockerignore
0 → 100644
+
3
−
0
View file @
5e96dfc4
/ADR
/.git
READMME.md
This diff is collapsed.
Click to expand it.
docker/Dockerfile
0 → 100644
+
22
−
0
View file @
5e96dfc4
# first stage
FROM
python:3.9.2
AS
builder
COPY
requirements.txt .
# install dependencies to the local user directory (eg. /root/.local)
RUN
pip
install
--user
-r
requirements.txt
# second unnamed stage
FROM
python:3.9.2-slim-buster
ENV
PYTHONDONTWRITEBYTECODE 1
ENV
PYTHONUNBUFFERED 1
WORKDIR
/code
# copy only the dependencies installation from the 1st stage image
COPY
--from=builder /root/.local /root/.local
COPY
./dataproc /code/
EXPOSE
8000
CMD
["python", "manage.py", "runserver", "0.0.0.0:8000"]
This diff is collapsed.
Click to expand it.
docker/docker-compose.yml
0 → 100644
+
43
−
0
View file @
5e96dfc4
version
:
'
3'
services
:
neo4j
:
image
:
neo4j:4.2
restart
:
unless-stopped
ports
:
-
7474:7474
-
7687:7687
volumes
:
-
./conf:/conf
-
./data:/data
-
./import:/import
-
./logs:/logs
-
./plugins:/plugins
environment
:
# Raise memory limits
-
NEO4J_dbms_memory_pagecache_size=1G
-
NEO4J_dbms.memory.heap.initial_size=1G
-
NEO4J_dbms_memory_heap_max_size=1G
dataservice
:
container_name
:
'
dataproc-service'
image
:
dataservice:1.0
build
:
context
:
./
networks
:
kong
:
restart
:
unless-stopped
ports
:
-
"
8055:8000"
volumes
:
-
dataproc-data:/code
depends_on
:
-
neo4j
volumes
:
dataproc-data
:
networks
:
kong
:
external
:
name
:
kong_net
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