-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (45 loc) · 825 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (45 loc) · 825 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.8'
services:
mongo:
image: mongo:5.0
container_name: mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
auth-service:
build:
context: ./backend
dockerfile: dockerfile-auth
ports:
- "4000:4000"
depends_on:
- mongo
article-service:
build:
context: ./backend
dockerfile: dockerfile-article
ports:
- "4001:4001"
depends_on:
- mongo
ad-service:
build:
context: ./backend
dockerfile: dockerfile-ad
ports:
- "4002:4002"
depends_on:
- mongo
frontend:
build:
context: ./frontend
dockerfile: dockerfile-frontend
ports:
- "8080:8080"
depends_on:
- auth-service
- article-service
- ad-service
volumes:
mongo-data: