-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (77 loc) · 1.83 KB
/
docker-compose.yaml
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
version: "3.1"
services:
mongo_auth:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
MONGO_INITDB_DATABASE: auth
ME_CONFIG_MONGODB_SERVER: mongo_auth
ports:
- 27017:27017
volumes:
- ./scripts/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js
mongo_tickets:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
MONGO_INITDB_DATABASE: tickets
ME_CONFIG_MONGODB_SERVER: mongo_tickets
ports:
- 27018:27017
volumes:
- ./scripts/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js
mongo_orders:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
MONGO_INITDB_DATABASE: orders
ME_CONFIG_MONGODB_SERVER: mongo_orders
ports:
- 27019:27017
volumes:
- ./scripts/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js
mongo_payments:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: pass
MONGO_INITDB_DATABASE: payments
ME_CONFIG_MONGODB_SERVER: mongo_payments
ports:
- 27020:27017
volumes:
- ./scripts/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js
nats:
container_name: nats
image: nats-streaming:latest
command:
- "-p"
- "4222"
- "-m"
- "8222"
- "-hbi"
- "5s"
- "-hbt"
- "5s"
- "-hbf"
- "2"
- "-SD"
- "-DV"
- "-cid"
- "ticketing"
- "-js"
ports:
- "4222:4222"
- "8222:8222"
redis:
image: redis:latest
restart: always
ports:
- 6379:6379