-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (85 loc) · 1.6 KB
/
docker-compose.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
version: "3"
networks:
backend:
driver: "bridge"
services:
nginx:
build:
context: ./nginx
args:
MONGO_HOST: mongo
ports:
- "80:80"
depends_on:
- bff
networks:
- backend
users:
build:
context: ./users
command: npm run start:watch
volumes:
- ./users:/usr/src/app
env_file:
- ./users/.env
environment:
- "JAEGER_ENDPOINT=http://jaeger:14268/api/traces"
- "JAEGER_AGENT_HOST=jaeger"
- "JAEGER_AGENT_PORT=5775"
depends_on:
- mongo
- address
- jaeger
networks:
- backend
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "16686:16686"
networks:
- backend
address:
build:
context: ./address
command: npm run start:watch
environment:
- "JAEGER_ENDPOINT=http://jaeger:14268/api/traces"
- "JAEGER_AGENT_HOST=jaeger"
- "JAEGER_AGENT_PORT=5775"
volumes:
- ./address:/usr/src/app
env_file:
- ./address/.env
depends_on:
- mongo
networks:
- backend
bff:
build:
context: ./bff
command: npm run start:watch
env_file:
- ./bff/.env
volumes:
- ./bff:/usr/src/app
ports:
- "8001:3000"
depends_on:
- mongo
- users
networks:
- backend
mongo:
image: "mongo:4"
restart: always
command: --auth
ports:
- "27017:27017"
env_file:
- .env
volumes:
- ./docker-entrypoint/mongo:/docker-entrypoint-initdb.d
- ./data/mongo:/data/db
networks:
- backend