/
docker-compose.yml
65 lines (58 loc) · 1.18 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
version: "3.3"
services:
nginx:
image: nginx:1.15.4-alpine
volumes:
- ../todo-react-app/build:/app
- ./default.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
depends_on:
- "zuul-service"
mysql:
image: mysql:5.7
volumes:
- /Users/hoyhe/Docker/mysql/datadir-pro:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
ports:
- "3307:3306"
restart: always
user-service:
image: todo-user-service
restart: always
ports:
- "8082:8082"
depends_on:
- "config-service"
- "mysql"
- "consul-service"
todo-service:
image: todo-todo-service
restart: always
ports:
- "8080:8080"
depends_on:
- "config-service"
- "mysql"
- "consul-service"
zuul-service:
image: todo-zuul-service
restart: always
ports:
- "8088:8088"
depends_on:
- "config-service"
- "consul-service"
config-service:
image: todo-config-service
restart: on-failure
ports:
- "8888:8888"
depends_on:
- "consul-service"
consul-service:
image: consul
restart: always
ports:
- "8500:8500"