- 8404:8404
backend-1:
- image: jmalloc/echo-server:latest
+ image: juplo/chat-backend:0.0.1-SNAPSHOT
+ environment:
+ chat.backend.inmemory.sharding-strategy: kafkalike
+ chat.backend.inmemory.num-shards: 10
+ chat.backend.inmemory.owned-shards: 1, 3, 4, 9
+ chat.backend.inmemory.storage-strategy: mongodb
+ spring.data.mongodb.host: mongo
+ spring.data.mongodb.database: test
ports:
- 8081:8080
backend-2:
- image: jmalloc/echo-server:latest
+ image: juplo/chat-backend:0.0.1-SNAPSHOT
+ environment:
+ chat.backend.inmemory.sharding-strategy: kafkalike
+ chat.backend.inmemory.num-shards: 10
+ chat.backend.inmemory.owned-shards: 0, 2, 7
+ chat.backend.inmemory.storage-strategy: mongodb
+ spring.data.mongodb.host: mongo
+ spring.data.mongodb.database: test
ports:
- 8082:8080
backend-3:
- image: jmalloc/echo-server:latest
+ image: juplo/chat-backend:0.0.1-SNAPSHOT
+ environment:
+ chat.backend.inmemory.sharding-strategy: kafkalike
+ chat.backend.inmemory.num-shards: 10
+ chat.backend.inmemory.owned-shards: 5, 6, 8
+ chat.backend.inmemory.storage-strategy: mongodb
+ spring.data.mongodb.host: mongo
+ spring.data.mongodb.database: test
ports:
- 8083:8080