@@ -37,10 +47,15 @@ Using the -p option with ports 7474 and 7687 allows us to expose and listen for
Using Docker on Windows will also need a couple of additional configurations because the default 0.0.0.0 address that is resolved with the above command does not translate to localhost in Windows. We need to add environment variables to our command above to set the advertised addresses.
By default, Neo4j requires authentication and requires us to first login with neo4j/neo4j and set a new password. We will skip this password reset by initializing the authentication none when we create the Docker container using the --env NEO4J_AUTH=none.
By default, Neo4j requires authentication and requires us to first login with neo4j/neo4j and set a new password. We will skip this password reset by initializing the authentication none when we create the Docker container using the --env NEO4J_AUTH=none.
3. After running the above command, neo4j instance will be created and container starts running, we can verify the same by accessing neo4j browser(http://localhost:7474/browser).
4. To SSH to neo4j docker container, run the below command.
```shell
docker exec-it sunbird_neo4j bash
```
### Redis database setup in docker:
1. we need to get the redis image from docker hub using the below command.
```shell
...
...
@@ -48,7 +63,11 @@ docker pull redis:6.0.8
```
2. We need to create the redis instance, By using the below command we can create the same and run in a container.
```shell
docker run --name local_redis -d-p 6379:6379 redis:6.0.8
docker run --name sunbird_redis -d-p 6379:6379 redis:6.0.8
```
3. To SSH to redis docker container, run the below command
```shell
docker exec-it sunbird_redis bash
```
### cassandra database setup in docker:
1. we need to get the cassandra image and can be done using the below command.
...
...
@@ -57,17 +76,22 @@ docker pull cassandra:3.11.8
```
2. We need to create the cassandra instance, By using the below command we can create the same and run in a container.
```shell
docker run --name local_cassandra -d-p 9042:9042 \