forked from piomin/sample-spring-microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.31 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
version: '3.5'
services:
discovery:
image: piomin/discovery-service
container_name: discovery-service
build:
context: ./discovery-service
dockerfile: Dockerfile
ports:
- "8761:8761"
gateway:
image: piomin/gateway-service
container_name: service-gateway
build:
context: ./gateway-service
dockerfile: Dockerfile
ports:
- "8765:8765"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
zipkin-service:
image: piomin/zipkin-service
container_name: zipkin-service
build:
context: ./zipkin-service
dockerfile: Dockerfile
ports:
- "9411:9411"
account-service:
image: piomin/account-service
container_name: account-service
build:
context: ./account-service
dockerfile: Dockerfile
ports:
- "2222:2222"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery
customer-service:
image: piomin/customer-service
container_name: customer-service
build:
context: ./customer-service
dockerfile: Dockerfile
ports:
- "3333:3333"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery:8761/eureka
links:
- discovery