-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
104 lines (95 loc) · 2.38 KB
/
docker-compose.dev.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
version: "2"
services:
# --------------------------------------
# Infrastructure
# --------------------------------------
mongo:
image: sammlerio/mongo
container_name: mongo
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./.data/db:/data/db
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"
]
logging:
driver: none
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"
# --------------------------------------
# Services
# --------------------------------------
jobs-service:
image: sammlerio/jobs-service
container_name: jobs-service
restart: always
environment:
- NODE_ENV=development
- PORT=3003
- 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
ports:
- "3003:3003"
volumes:
- "./:/opt/jobs-service"
depends_on:
- mongo
- nats-streaming
command: ["npm", "run", "start:watch"]
# 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
# depends_on:
# - mongo
# - nats-streaming