Skip to content
Snippets Groups Projects
Commit 5e96dfc4 authored by root's avatar root
Browse files

Group docker related files

parent 43ecd2d6
No related branches found
No related tags found
No related merge requests found
/ADR
/.git
READMME.md
# 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"]
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment