-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
111 lines (100 loc) · 2.69 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.8'
services:
# Applications
keycloak:
extends:
file: identity-service/docker-compose.yml
service: keycloak
service-discovery:
container_name: service-discovery
build: service-discovery/sd-app
restart: always
ports:
- "8081:8081"
healthcheck:
test: "curl --fail --silent http://localhost:8081/private/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
gateway:
container_name: gateway
build: gateway/app
restart: always
ports:
- "8080:8080"
depends_on:
service-discovery:
condition: service_healthy
keycloak:
condition: service_healthy
environment:
- EUREKA_URL=http://service-discovery:8081
- KEYCLOAK_URL=http://keycloak:8080
healthcheck:
test: "curl --fail --silent http://localhost:8080/private/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
sales-catalog:
container_name: sales-catalog
build: sales-catalog/sales-catalog-app
restart: always
ports:
- "8082:8082"
depends_on:
service-discovery:
condition: service_healthy
keycloak:
condition: service_healthy
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8081/eureka/
- POSTGRESQL_URL=database:5432
healthcheck:
test: "curl --fail --silent http://localhost:8082/private/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
basket-service:
container_name: basket-service
build: basket-service/basket-service-app
restart: always
ports:
- "8083:8083"
depends_on:
service-discovery:
condition: service_healthy
keycloak:
condition: service_healthy
environment:
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service-discovery:8081/eureka/
healthcheck:
test: "curl --fail --silent http://localhost:8083/private/health | grep UP || exit 1"
interval: 20s
timeout: 5s
retries: 5
# PostgreSQL
database:
extends:
file: local-database-config/docker-compose.yml
service: database
pgadmin:
extends:
file: local-database-config/docker-compose.yml
service: pgadmin
postgres-exporter:
extends:
file: local-database-config/docker-compose.yml
service: postgres-exporter
# Observability
prometheus:
extends:
file: observability-tools/docker-compose.yml
service: prometheus
alert-manager:
extends:
file: observability-tools/docker-compose.yml
service: alertmanager
grafana:
extends:
file: observability-tools/docker-compose.yml
service: grafana