forked from ruifly2012/game-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
71 lines (62 loc) · 1.2 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
# docker-compose.yaml
# 同样遵循严格的缩进
version: '3.5'
services:
web-service:
build: ./web-service
environment:
- "ETCD_HOST=etcd:2379"
- "NATS_HOST=nats://nats:4222"
depends_on:
- datastore
- nats
- etcd
ports:
- 8080:8080
connector-service:
build: ./connector-service
environment:
- "ETCD_HOST=etcd:2379"
- "NATS_HOST=nats://nats:4222"
depends_on:
- nats
- etcd
ports:
- 3250:3250
lobby-service:
build: ./lobby-service
environment:
- "ETCD_HOST=etcd:2379"
- "NATS_HOST=nats://nats:4222"
depends_on:
- nats
- etcd
mjgame-service:
build: ./mjgame-service
environment:
- "DB_HOST=datastore:27017"
- "ETCD_HOST=etcd:2379"
- "NATS_HOST=nats://nats:4222"
depends_on:
- nats
- etcd
nngame-service:
build: ./nngame-service
environment:
- "ETCD_HOST=etcd:2379"
- "NATS_HOST=nats://nats:4222"
depends_on:
- nats
- etcd
datastore:
image: mongo
ports:
- 27017:27017
nats:
image: nats
ports:
- 4222:4222
etcd:
image: appcelerator/etcd
ports:
- 2379:2379