spring-petclinic

Форк
0
/
docker-compose.yml 
144 строки · 3.1 Кб
1
version: '3'
2

3
services:
4
  config-server:
5
    image: springcommunity/spring-petclinic-config-server
6
    container_name: config-server
7
    deploy:
8
      resources:
9
        limits:
10
          memory: 512M
11
    healthcheck:
12
      test: ["CMD", "curl", "-I", "http://config-server:8888"]
13
      interval: 5s
14
      timeout: 5s
15
      retries: 10
16
    ports:
17
     - 8888:8888
18

19
  discovery-server:
20
    image: springcommunity/spring-petclinic-discovery-server
21
    container_name: discovery-server
22
    deploy:
23
      resources:
24
        limits:
25
          memory: 512M
26
    healthcheck:
27
      test: ["CMD", "curl", "-f", "http://discovery-server:8761"]
28
      interval: 5s
29
      timeout: 3s
30
      retries: 10
31
    depends_on:
32
      config-server:
33
        condition: service_healthy
34
    ports:
35
     - 8761:8761
36

37
  customers-service:
38
    image: springcommunity/spring-petclinic-customers-service
39
    container_name: customers-service
40
    deploy:
41
      resources:
42
        limits:
43
          memory: 512M
44
    depends_on:
45
      config-server:
46
        condition: service_healthy
47
      discovery-server:
48
        condition: service_healthy
49
    ports:
50
    - 8081:8081
51

52
  visits-service:
53
    image: springcommunity/spring-petclinic-visits-service
54
    container_name: visits-service
55
    deploy:
56
      resources:
57
        limits:
58
          memory: 512M
59
    depends_on:
60
      config-server:
61
        condition: service_healthy
62
      discovery-server:
63
        condition: service_healthy
64
    ports:
65
     - 8082:8082
66

67
  vets-service:
68
    image: springcommunity/spring-petclinic-vets-service
69
    container_name: vets-service
70
    deploy:
71
      resources:
72
        limits:
73
          memory: 512M
74
    depends_on:
75
      config-server:
76
        condition: service_healthy
77
      discovery-server:
78
        condition: service_healthy
79
    ports:
80
     - 8083:8083
81

82
  api-gateway:
83
    image: springcommunity/spring-petclinic-api-gateway
84
    container_name: api-gateway
85
    deploy:
86
      resources:
87
        limits:
88
          memory: 512M
89
    depends_on:
90
      config-server:
91
        condition: service_healthy
92
      discovery-server:
93
        condition: service_healthy
94
    ports:
95
     - 8080:8080
96

97
  tracing-server:
98
    image: openzipkin/zipkin
99
    container_name: tracing-server
100
    deploy:
101
      resources:
102
        limits:
103
          memory: 512M
104
    environment:
105
    - JAVA_OPTS=-XX:+UnlockExperimentalVMOptions -Djava.security.egd=file:/dev/./urandom
106
    ports:
107
     - 9411:9411
108

109
  admin-server:
110
    image: springcommunity/spring-petclinic-admin-server
111
    container_name: admin-server
112
    deploy:
113
      resources:
114
        limits:
115
          memory: 512M
116
    depends_on:
117
      config-server:
118
        condition: service_healthy
119
      discovery-server:
120
        condition: service_healthy
121
    ports:
122
     - 9090:9090
123

124
  ## Grafana / Prometheus
125

126
  grafana-server:
127
    build: ./docker/grafana
128
    container_name: grafana-server
129
    deploy:
130
      resources:
131
        limits:
132
          memory: 256M
133
    ports:
134
    - 3000:3000
135

136
  prometheus-server:
137
    build: ./docker/prometheus
138
    container_name: prometheus-server
139
    deploy:
140
      resources:
141
        limits:
142
          memory: 256M
143
    ports:
144
    - 9091:9090
145

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.