Commit 0b415de0 authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

docker

parent bf053d5f
......@@ -18,3 +18,12 @@ will run all needed services and API (backend application)
then connect to the docker container (the current name of container is "build_api_reqman_1") to create the super user
`sudo docker exec -it build_api_reqman_1 /bin/bash `
Problem with Fuseki, need to run:
docker exec -it fuseki bash
:/jena-fuseki# apt-get update
:/jena-fuseki# apt-get install -y procps
:/jena-fuseki# exit
......@@ -15,7 +15,7 @@ RUN apt-get update && \
RUN mkdir Ontologies
WORKDIR /Ontologies
COPY Ontologies/ /Ontologies/
#COPY Ontologies/ /Ontologies/
WORKDIR /api
......@@ -39,4 +39,4 @@ EXPOSE 8000
RUN ["pwd"]
RUN ["ls", "-l"]
CMD ["gunicorn", "reqman.wsgi", "-b", "0.0.0.0:8000", "--timeout", "720"]
\ No newline at end of file
CMD ["gunicorn", "reqman.wsgi", "-b", "0.0.0.0:8000", "--timeout", "720", "-w", "2", "--threads", "4"]
\ No newline at end of file
......@@ -21,6 +21,8 @@ services:
context: ..
dockerfile: build/Dockerfile.api
env_file: ../api/.env
volumes:
- ./data/Ontologies:/Ontologies
depends_on:
- postgres
environment:
......@@ -40,14 +42,18 @@ services:
ports:
- "5432:5432"
fuseki:
restart: always
image: stain/jena-fuseki
environment:
- ADMIN_PASSWORD=pw!!!
volumes:
- ./data/fuseki:/fuseki
expose:
- "3030"
volumes:
reqman-pgdata:
reqman-elasticdata:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment