-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
80 lines (76 loc) · 1.31 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
79
80
version: '2'
services:
nats:
image: 'nats:latest'
expose:
- "4222"
- "6222"
- "8222"
ports:
- "8222:8222"
- "6222:6222"
- "4222:4222"
hostname: nats-server
receive:
build: ./node_receive/
ports:
- "8000:8000"
- "8080:8080"
volumes:
- .:/node_receive/
links:
- nats
depends_on:
- nats
send:
build: ./node_send/
ports:
- "3000:3000"
volumes:
- .:/node_send/
links:
- nats
depends_on:
- nats
front:
build: ./react_map/
ports:
- "3006:3006"
volumes:
- .:/react_map/
depends_on:
- receive
# version: "2"
# services:
# nats:
# image: 'nats:0.8.0'
# entrypoint: "/gnatsd -DV"
# expose:
# - "4222"
# ports:
# - "8222:8222"
# hostname: nats-server
# api:
# build:
# context: "./api"
# entrypoint: /go/api-server
# links:
# - nats
# environment:
# - "NATS_URI=nats://nats:4222"
# depends_on:
# - nats
# ports:
# - "8080:8080"
# worker:
# build:
# context: "./worker"
# entrypoint: /go/worker
# links:
# - nats
# environment:
# - "NATS_URI=nats://nats:4222"
# depends_on:
# - nats
# ports:
# - "8181:8181"