This is a project for mapping People Analytics that runs a Neo4j graph database in Docker containers.
It takes a bunch o' stuff from the GRANDstack toolkit, begining with the GRANDstack starter.
This project assumes you already have Traefik running on a container in an external network called traefik
.
To create a Docker external network called traefik
:
docker network create traefik
A project like joesb/docker-portainer-traefik may be a good way to run a Traefik (and Portainer) instance on that external network.
- Clone this repository.
- Copy-and-paste
.env.example
to.env
and edit settings to suit your needs. This is the environment for your local Docker. Most settings should be obvious and/or self-evident. The default values are probably fine. - Start it up
The Makefile
and docker.mk
included in this project provide some easy CLI tools to work with this Docker stack for Drupal.
To start your Docker stack, from the root directory of your cloned repo:
make up
To stop your Docker stack:
make down
Once booted, you should have:
- a Neo4j instance running
- an Nginx container running a simple static HTML page with Neovis.js
You will need to make changes to the index.html
file so that Neovis.js can connect to your Neo4j instance.
The project comes with several handy make commands.
Usage:
make {command}
Commands:
up Start up all container from the current docker-compose.yml
stop Stop all containers for the current docker-compose.yml (docker-compose stop)
down Same as stop
prune Stop and remove containers, networks, images, and volumes (docker-compose down)
ps List container for the current project (docker ps with filter by name)
logs [service] Show containers logs, use [service] to show logs of specific service