-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
64 lines (60 loc) · 1.8 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: '2.0'
services:
config-service:
image: config-service
ports:
- "8888:8888"
expose:
- 8888
networks:
- arsslens-network
environment:
SPRING_APPLICATION_JSON: '{"spring": {"cloud": {"config": { "server":{"git":{"uri":"https://github.com/Arsslensoft/eservices-configs"}}}}}}'
product-service-1:
image: product-service
expose:
- 8080
ports:
- "8080:8080"
depends_on:
- config-service
- discovery-service
links:
- config-service:config-service
- discovery-service:discovery-service
networks:
- arsslens-network
environment:
SPRING_APPLICATION_JSON: '{"spring":{"cloud":{"config":{"uri":"http://config-service:8888"}}}}'
discovery-service:
image: discovery-service
expose:
- 8761
ports:
- "8761:8761"
depends_on:
- config-service
environment:
SPRING_APPLICATION_JSON: '{"spring": {"cloud": {"config": {"uri": "http://config-service:8888"}}}}'
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "false"
networks:
- arsslens-network
proxy-service:
image: proxy-service
expose:
- 9999
links:
- config-service:config-service
- discovery-service:discovery-service
ports:
- "9999:9999"
depends_on:
- config-service
- discovery-service
networks:
- arsslens-network
environment:
SPRING_APPLICATION_JSON: '{"spring":{"cloud":{"config":{"uri":"http://config-service:8888"}}}}'
networks:
arsslens-network:
driver: bridge