-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-apps.yml
88 lines (81 loc) · 2.17 KB
/
docker-compose-apps.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
78
79
80
81
82
83
84
85
86
87
88
version: '3.7'
services:
authservice:
image: authservice:1.0
container_name: authservice
build:
context: ./authservice
ports:
- "8082:80"
restart: unless-stopped
gatewayservice:
image: gatewayservice:1.0
container_name: gatewayservice
build:
context: ./gatewayservice
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: gatewayservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
orderservice:
image: orderservice:1.0
container_name: orderservice
build:
context: ./orderservice
dockerfile: Dockerfile
ports:
- "8083:8083"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: orderservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"
paymentservice:
image: paymentservice:1.0
container_name: paymentservice
build:
context: ./paymentservice
dockerfile: Dockerfile
ports:
- "8084:8084"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: paymentservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"
deliveryservice:
image: deliveryservice:1.0
container_name: deliveryservice
build:
context: ./deliveryservice
dockerfile: Dockerfile
ports:
- "8085:8085"
environment:
SPRING_CLOUD_CONFIG_URI: "http://configserver:8000"
SPRING_CLOUD_CONFIG_FAIL-FAST: "true"
SPRING_PROFILES_ACTIVE: docker
SPRING_APPLICATON_NAME: deliveryservice
JAVA_OPTS: -Xmx2048m -Xms2048m
restart: always
links:
- "logstash:logstash"
- "kafka:kafka"