forked from fChristenson/microservices-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 849 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 849 Bytes
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
version: '3'
services:
web:
build: './web'
ports:
- "3000:3000"
search:
build: './search'
ports:
- "3001:3000"
depends_on:
- db
environment:
- MONGO_DB_URI=mongodb://db/microservices
books:
build: './books'
ports:
- "3002:3000"
depends_on:
- db
environment:
- MONGO_DB_URI=mongodb://db/microservices
videos:
build: './videos'
ports:
- "3003:3000"
depends_on:
- db
environment:
- MONGO_DB_URI=mongodb://db/microservices
db:
image: mongo
ports:
- "27017:27017"
nginx:
image: nginx:latest
ports:
- "8080:8080"
volumes:
- ./web/public:/srv/www/static
- ./default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web
- books
- search
- videos