-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.08 KB
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
version: '3.3'
services:
article:
build:
context: .
dockerfile: article/dockerfile
image: article:1.0
container_name: article-service
environment:
MONGO_HOST: mongo:27017
ports:
- 8001:8001
depends_on:
- mongo
volumes:
- blog:/article
networks:
- blog
user:
build:
context: .
dockerfile: user/dockerfile
image: user:1.0
container_name: user-service
environment:
MONGO_HOST: mongo:27017
ports:
- 8002:8002
depends_on:
- mongo
volumes:
- blog:/user
networks:
- blog
front:
build:
context: .
dockerfile: front/dockerfile
image: front:1.0
container_name: front-service
environment:
ARTICLE_HOST: article:8002
USER_HOST: user:8001
depends_on:
- article
- user
ports:
- 8003:8003
volumes:
- blog:/front
networks:
- blog
mongo:
image: mongo:5.0.9
container_name: mongo
networks:
- blog
volumes:
blog:
networks:
blog:
driver: bridge