spring-petclinic
/
docker-compose.yml
144 строки · 3.1 Кб
1version: '3'
2
3services:
4config-server:
5image: springcommunity/spring-petclinic-config-server
6container_name: config-server
7deploy:
8resources:
9limits:
10memory: 512M
11healthcheck:
12test: ["CMD", "curl", "-I", "http://config-server:8888"]
13interval: 5s
14timeout: 5s
15retries: 10
16ports:
17- 8888:8888
18
19discovery-server:
20image: springcommunity/spring-petclinic-discovery-server
21container_name: discovery-server
22deploy:
23resources:
24limits:
25memory: 512M
26healthcheck:
27test: ["CMD", "curl", "-f", "http://discovery-server:8761"]
28interval: 5s
29timeout: 3s
30retries: 10
31depends_on:
32config-server:
33condition: service_healthy
34ports:
35- 8761:8761
36
37customers-service:
38image: springcommunity/spring-petclinic-customers-service
39container_name: customers-service
40deploy:
41resources:
42limits:
43memory: 512M
44depends_on:
45config-server:
46condition: service_healthy
47discovery-server:
48condition: service_healthy
49ports:
50- 8081:8081
51
52visits-service:
53image: springcommunity/spring-petclinic-visits-service
54container_name: visits-service
55deploy:
56resources:
57limits:
58memory: 512M
59depends_on:
60config-server:
61condition: service_healthy
62discovery-server:
63condition: service_healthy
64ports:
65- 8082:8082
66
67vets-service:
68image: springcommunity/spring-petclinic-vets-service
69container_name: vets-service
70deploy:
71resources:
72limits:
73memory: 512M
74depends_on:
75config-server:
76condition: service_healthy
77discovery-server:
78condition: service_healthy
79ports:
80- 8083:8083
81
82api-gateway:
83image: springcommunity/spring-petclinic-api-gateway
84container_name: api-gateway
85deploy:
86resources:
87limits:
88memory: 512M
89depends_on:
90config-server:
91condition: service_healthy
92discovery-server:
93condition: service_healthy
94ports:
95- 8080:8080
96
97tracing-server:
98image: openzipkin/zipkin
99container_name: tracing-server
100deploy:
101resources:
102limits:
103memory: 512M
104environment:
105- JAVA_OPTS=-XX:+UnlockExperimentalVMOptions -Djava.security.egd=file:/dev/./urandom
106ports:
107- 9411:9411
108
109admin-server:
110image: springcommunity/spring-petclinic-admin-server
111container_name: admin-server
112deploy:
113resources:
114limits:
115memory: 512M
116depends_on:
117config-server:
118condition: service_healthy
119discovery-server:
120condition: service_healthy
121ports:
122- 9090:9090
123
124## Grafana / Prometheus
125
126grafana-server:
127build: ./docker/grafana
128container_name: grafana-server
129deploy:
130resources:
131limits:
132memory: 256M
133ports:
134- 3000:3000
135
136prometheus-server:
137build: ./docker/prometheus
138container_name: prometheus-server
139deploy:
140resources:
141limits:
142memory: 256M
143ports:
144- 9091:9090
145