-
Notifications
You must be signed in to change notification settings - Fork 252
/
Copy pathdocker-compose.yml
77 lines (76 loc) · 1.79 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
version: '3.4'
services:
configserver:
image: "steeltoeoss/config-server"
command: --spring.profiles.active=native --spring.cloud.config.server.native.searchLocations=/config
volumes:
- type: bind
source: ./src/config
target: /config
ports:
- "8888:8888"
eurekaserver:
image: "steeltoeoss/eurekaserver"
ports:
- "8761:8761"
spring-boot-admin:
environment:
- EUREKA_SERVICE_URL=http://eurekaserver:8761
image: "hananiel/spring-boot-admin-eureka-sample"
ports:
- "8889:8080"
depends_on:
- eurekaserver
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: steeltoe
MYSQL_DATABASE: steeltoe2
MYSQL_USER: steeltoe
MYSQL_PASSWORD: steeltoe
depends_on:
- configserver
- eurekaserver
zipkinserver:
image: "steeltoeoss/zipkin"
ports:
- "9411:9411"
musicservice:
image: ${DOCKER_REGISTRY-}musicservice
build:
context: ./src/MusicStoreService
dockerfile: Dockerfile
depends_on:
- configserver
- eurekaserver
- mysql
shoppingcartservice:
image: ${DOCKER_REGISTRY-}shoppingcartservice
build:
context: ./src/ShoppingCartService
dockerfile: Dockerfile
depends_on:
- configserver
- eurekaserver
- mysql
orderservice:
image: ${DOCKER_REGISTRY-}orderservice
build:
context: ./src/OrderService
dockerfile: Dockerfile
depends_on:
- configserver
- eurekaserver
- mysql
musicstore:
image: ${DOCKER_REGISTRY-}musicstore
build:
context: ./src/MusicStoreUI
dockerfile: Dockerfile
depends_on:
- configserver
- eurekaserver
- musicservice
- shoppingcartservice
- orderservice
- mysql