Starting Neo4j in docker

docker run \
    --name testneo4j \
    -p7474:7474 -p7687:7687 \
    -d \
    -v $HOME/neo4j/data:/data \
    -v $HOME/neo4j/logs:/logs \
    -v $HOME/neo4j/import:/var/lib/neo4j/import \
    -v $HOME/neo4j/plugins:/plugins \
    --env NEO4J_AUTH=neo4j/test \
    neo4j:latest

Please note the option -v which is mounting the volume. It is important that we provide the data directory on a host for the persistence purpose

Does Neo4j support scaling through docker containers?

Enterprise edition supports Kubernetes but community edition has no easy answer. It is better to run as one node