Docker¶
Warning
by default the server is not secured at all
- Authentication is disabled (run-parameter
--env "NEO4J_AUTH=none") - make sure to set your firewall rules to keep the server in you zone only
Build MaSeMiWa-Docker-Image yourself¶
- open a terminal in the root folder of the repository (the
Dockerfileis located here) - create docker image
masemiwa, i.e. withdocker build -t masemiwa .
Run MaSeMiWa-Docker-Image¶
run the docker image with something like the code from the file
docker/start_docker.shin the root of the repositorydocker run --rm \ --detach \ --name masemiwa \ --user "$(id -u):$(id -g)" \ --volume "/my/local/folder/with/masemiwa/config:/opt/config" \ --volume "/my/local/folder/with/masemiwa/logs:/opt/logs" \ --publish 8080:4242 \ masemiwa
--rmto remove the container after running from cache--detachto ru in background mode--namenaming of the container--userto use the current users id and group id for writing files in the mounted volumes--volumeto bind a local directory or any docker-volume to save the logs and read the configuration, please replace/my/local/folder/with/masemiwa/accordingly- ⚠ make sure, the local directories exist and belong to the same user and group as the process in the docker container. With the
--useroption, you need to use the same IDs.
- ⚠ make sure, the local directories exist and belong to the same user and group as the process in the docker container. With the
--publishto map the internal listener to a port on your machine
the server in the container will listen on port
4242for SEEK requests
Connect MaSeMiWa and MaSyMoS Morre with Docker¶
- requirements
- MaSeMiWa is running in Docker, see above
- run
start_docker.sh→ creates Docker Containermasemiwa
- run
- MaSyMoS Morre is running with Neo4J in Docker, see here
- run
run-neo4j-server.sh→ creates Docker Containermasymos_neo4j
- run
create Docker Network and add the two machines
docker network create masy docker network connect masy masymos_neo4j docker network connect masy masemiwa
- hints
- if you rename something or if you use other ports, make sure, to update the MaSeMiWa configuration