-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (66 loc) · 1.76 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3"
services:
mongo0:
hostname: mongo0
container_name: mongo0
image: mongo
ports:
- 30100:27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
mongo1:
hostname: mongo1
container_name: mongo1
image: mongo
ports:
- 30101:27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
nats-ui:
build: nats-streaming-ui
depends_on:
- nats-streaming
environment:
- STAN_URL=nats://nats-streaming:4222
- STAN_MONITOR_URL=nats://nats-streaming:8222
ports:
- "8282:8282"
nats-streaming:
image: nats-streaming:latest
restart: unless-stopped
ports:
- "4222:4222"
nats-generator:
build: nats-generator
depends_on:
- nats-streaming
environment:
- STAN_URL=nats://nats-streaming:4222
nats-to-mongo:
build: nats-to-mongo
depends_on:
- mongo0
- mongo1
- nats-streaming
environment:
- STAN_URL=nats://nats-streaming:4222
- MONGO_URI=mongodb://mongo0:27017,mongo1:27017/?replicaSet=rs0&connect=direct
# mongo-generator:
# build: mongo-generator
# environment:
# - MONGO_URI=mongodb://mongo0:27017,mongo1:27017/?replicaSet=rs0&connect=direct
# mongo-watcher:
# build: mongo-watcher
# environment:
# - MONGO_URI=mongodb://mongo0:27017,mongo1:27017/?replicaSet=rs0&connect=direct
mongo-watcher-socket:
build: socket-server
depends_on:
- nats-streaming
- nats-to-mongo
environment:
# Set DEBUG=1 if you want to see msgs with docker-compose logs
- DEBUG_MSGS=0
- MONGO_URI=mongodb://mongo0:27017,mongo1:27017/?replicaSet=rs0&connect=direct
ports:
- "5000:5000"