-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.deps.yml
116 lines (106 loc) · 2.79 KB
/
docker-compose.deps.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.3'
services:
# --------------------------------------
# Infrastructure
# --------------------------------------
mongo:
image: sammlerio/mongo
container_name: mongo
ports:
- "27017:27017"
logging:
driver: none
nats-streaming:
image: sammlerio/nats-streaming
container_name: nats-streaming
ports:
- "4222:4222"
- "4223:4223"
- "8223:8223"
- "8222:8222"
volumes:
- ./.datastore:/datastore
command: [
"-m", "8222",
"--store", "FILE",
"--dir", "datastore"
]
natsboard:
image: urashidmalik/natsboard
container_name: natsboard
ports:
- "4000:3000"
- "4001:3001"
environment:
- NATS_MONITOR_URL=http://nats-streaming:8222
nats-streaming-console:
image: mozgoo/nats-streaming-console #https://github.com/KualiCo/nats-streaming-console/issues/7
container_name: nats-streaming-console
environment:
- STAN_URL=nats://nats-streaming:4222
- STAN_MONITOR_URL=http://nats-streaming:8222
ports:
- "8282:8282"
logging:
driver: none
# --------------------------------------
# Seed
# --------------------------------------
mongo-seed:
image: stefanwalther/mongo-seed
container_name: mongo-seed
environment:
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
volumes:
- ./config/db-seed:/data
command: [
"mongoimport --host mongo --port 27017 --db db --mode upsert --type json --file /data/auth-service~~user.json --jsonArray"
]
# --------------------------------------
# Depending Services
# --------------------------------------
auth-service:
image: sammlerio/auth-service
container_name: auth-service
ports:
- "3010:3010"
environment:
- NODE_ENV=development
- PORT=3010
- JWT_SECRET=foo
- MONGODB_DEBUG=false
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_DATABASE=db
- NATS_STREAMING_HOST=nats-streaming
- NATS_STREAMING_PORT=4222
- ENABLE_AUDIT_LOG=true
- DEBUG_HIDE_DATE=true
depends_on:
- mongo
- mongo-seed
- nats-streaming
jobs-service:
image: sammlerio/jobs-service
container_name: jobs-service
restart: on-failure
environment:
- NODE_ENV=development
- PORT=3003
- JWT_SECRET=foo
- MONGODB_DATABASE=db
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_DEBUG=false
- NATS_STREAMING_HOST=nats-streaming
- NATS_STREAMING_PORT=4222
- ENABLE_AUDIT_LOG=true
- DEBUG_HIDE_DATE=true
- DEBUG='agenda:* jobs-service:* -jobs-service:index:*'
ports:
- "3003:3003"
command: ["npm", "run", "start"]
depends_on:
- mongo
- nats-streaming