-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
175 lines (165 loc) · 4.58 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
volumes:
app-logs:
mysql-data:
mongo-data:
services:
discovery-server:
container_name: healthcare-discovery-server
restart: unless-stopped
image: arivanamin/healthcare-discovery-server
ports:
- "8761:8761"
env_file:
- .env
volumes:
- app-logs:/root/Apps/Healthcare/Logs/
api-gateway:
container_name: healthcare-api-gateway
restart: unless-stopped
image: arivanamin/healthcare-api-gateway
ports:
- "8080:8080"
env_file:
- .env
volumes:
- app-logs:/root/Apps/Healthcare/Logs/
depends_on:
- discovery-server
tempo:
container_name: healthcare-tempo
restart: unless-stopped
image: grafana/tempo:2.3.0
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./Docker/tempo/tempo.yml:/etc/tempo.yaml:ro
ports:
- "3110:3100" # Tempo
- "9411:9411" # zipkin
loki:
container_name: healthcare-loki
restart: unless-stopped
image: grafana/loki:3.2.0
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3100:3100"
promtail:
container_name: healthcare-promtail
restart: unless-stopped
image: grafana/promtail:3.2.0
volumes:
- ./Docker/promtail/promtail-config.yaml:/etc/promtail/config.yml
- app-logs:/logs
- ${HOME}/Apps/Healthcare/Logs:/local-logs
command: -config.file=/etc/promtail/config.yml
prometheus:
container_name: healthcare-prometheus
restart: unless-stopped
image: prom/prometheus:v2.54.1
command:
- --enable-feature=exemplar-storage
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./Docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
container_name: healthcare-grafana
restart: unless-stopped
image: grafana/grafana:11.2.0
volumes:
- ./Docker/grafana:/etc/grafana/provisioning/datasources:ro
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
mysql:
container_name: healthcare-mysql
restart: unless-stopped
image: mysql:9.1.0
environment:
MYSQL_ROOT_PASSWORD: mysql
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./Docker/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
# mongo:
# container_name: healthcare-mongo
# restart: unless-stopped
# image: mongo:8.0.0
# ports:
# - "27017:27017"
# volumes:
# - mongo-data:/data/db
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: mongo
#
# mongo-express:
# container_name: mongo-express
# restart: unless-stopped
# image: mongo-express:latest
# ports:
# - "8081:8081"
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: mongo
# ME_CONFIG_MONGODB_SERVER: healthcare-mongo
# depends_on:
# - mongo
# Kafka
# zookeeper:
# container_name: healthcare-zookeeper
# restart: unless-stopped
# image: confluentinc/cp-zookeeper:7.5.0
# hostname: zookeeper
# ports:
# - "2181:2181"
# environment:
# ZOOKEEPER_CLIENT_PORT: 2181
# ZOOKEEPER_TICK_TIME: 2000
#
# broker:
# container_name: healthcare-broker
# restart: unless-stopped
# image: confluentinc/cp-kafka:7.5.0
# ports:
# - "9092:9092"
# - "29092:29092"
# depends_on:
# - zookeeper
# environment:
# KAFKA_BROKER_ID: 1
# KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
#
# schema-registry:
# container_name: healthcare-schema-registry
# restart: unless-stopped
# image: confluentinc/cp-schema-registry:7.5.0
# hostname: schema-registry
# depends_on:
# - broker
# ports:
# - "8085:8081"
# environment:
# SCHEMA_REGISTRY_HOST_NAME: schema-registry
# SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'broker:29092'
# SCHEMA_REGISTRY_LISTENERS: http://schema-registry:8081
#
# kafka-ui:
# container_name: healthcare-kafka-ui
# restart: unless-stopped
# image: provectuslabs/kafka-ui:latest
# ports:
# - "8086:8080"
# depends_on:
# - broker
# environment:
# KAFKA_CLUSTERS_NAME: local
# KAFKA_CLUSTERS_BOOTSTRAPSERVERS: broker:29092
# DYNAMIC_CONFIG_ENABLED: 'true'