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) ...@@ -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 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 ` `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 && \ ...@@ -15,7 +15,7 @@ RUN apt-get update && \
RUN mkdir Ontologies RUN mkdir Ontologies
WORKDIR /Ontologies WORKDIR /Ontologies
COPY Ontologies/ /Ontologies/ #COPY Ontologies/ /Ontologies/
WORKDIR /api WORKDIR /api
...@@ -39,4 +39,4 @@ EXPOSE 8000 ...@@ -39,4 +39,4 @@ EXPOSE 8000
RUN ["pwd"] RUN ["pwd"]
RUN ["ls", "-l"] RUN ["ls", "-l"]
CMD ["gunicorn", "reqman.wsgi", "-b", "0.0.0.0:8000", "--timeout", "720"] CMD ["gunicorn", "reqman.wsgi", "-b", "0.0.0.0:8000", "--timeout", "720", "-w", "2", "--threads", "4"]
\ No newline at end of file \ No newline at end of file
...@@ -21,6 +21,8 @@ services: ...@@ -21,6 +21,8 @@ services:
context: .. context: ..
dockerfile: build/Dockerfile.api dockerfile: build/Dockerfile.api
env_file: ../api/.env env_file: ../api/.env
volumes:
- ./data/Ontologies:/Ontologies
depends_on: depends_on:
- postgres - postgres
environment: environment:
...@@ -40,14 +42,18 @@ services: ...@@ -40,14 +42,18 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
fuseki: fuseki:
restart: always
image: stain/jena-fuseki image: stain/jena-fuseki
environment: environment:
- ADMIN_PASSWORD=pw!!! - ADMIN_PASSWORD=pw!!!
volumes:
- ./data/fuseki:/fuseki
expose: expose:
- "3030" - "3030"
volumes: volumes:
reqman-pgdata: reqman-pgdata:
reqman-elasticdata: 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