Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #107

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,55 @@ To test the replication, simply create a key on one site and search for it on th

Docker command example for two sites on same system (but you have to use different ports for both sites):
shivan marked this conversation as resolved.
Show resolved Hide resolved

Config1:

```
jgroups:
diagnostics: true
encrypt: false
xsite:
address: <ip of infinispan nyc>
name: NYC
port: 7300
backups:
- address: <ip of infinispan lon>
name: LON
port: 7200
oraNod marked this conversation as resolved.
Show resolved Hide resolved
logging:
console:
level: debug
categories:
com.arjuna: warn
org.jgroups: debug
```


Infinispan 1 - in network "bridge" - admin port 11222, jgroups port 7300:

`docker run --rm -p 11222:11222 -p 7300:7900 -v <path/to/config-folder>:/user-config --name infinispan1 -e IDENTITIES_PATH="/user-config/identities.yaml" -e CONFIG_PATH="/user-config/config1.yaml" --network bridge infinispan/server

Config1:
shivan marked this conversation as resolved.
Show resolved Hide resolved

```
jgroups:
diagnostics: true
encrypt: false
xsite:
address: <ip of infinispan lon>
name: LON
port: 7200
backups:
- address: <ip of infinispan nyc>
name: NYC
port: 7300
oraNod marked this conversation as resolved.
Show resolved Hide resolved
logging:
console:
level: debug
categories:
com.arjuna: warn
org.jgroups: debug
```

Infinispan 2 - in network "Bridge2" (created by `docker network create -d bridge Bridge2`) - admin port 12222, jgroups port 7200:

`docker run --rm -p 12222:11222 -p 7200:7900 -v <path/to/config-folder>:/user-config --name infinispan2 -e IDENTITIES_PATH="/user-config/identities.yaml" -e CONFIG_PATH="/user-config/config2.yaml" --network Bridge2 infinispan/server`
Expand Down