-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
153 lines (142 loc) · 3.42 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
version: '3.9'
services:
prometheus:
image: "prom/prometheus:v2.44.0"
container_name: prometheus
command:
- --enable-feature=exemplar-storage
- --config.file=/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- backend
grafana:
image: "grafana/grafana:11.1.1"
container_name: grafana
ports:
- "3000:3000"
links:
- prometheus:prometheus
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./docker/grafana/var:/var/lib/grafana
- ./docker/grafana:/etc/grafana/provisioning/datasources:ro
networks:
- backend
loki:
image: grafana/loki:main
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3100:3100"
networks:
- backend
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./docker/tempo/tempo.yml:/etc/tempo.yaml:ro
- ./docker/tempo/tempo-data:/tmp/tempo
ports:
- "3110:3100" # Tempo
- "9411:9411" # zipkin
networks:
- backend
db:
image: "postgres:14-alpine"
ports:
- "5432"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_DB=postgres"
networks:
- backend
discovery-server:
image: "vetther/idp-discovery-server"
ports:
- "8761:8761"
environment:
- "spring.profiles.active=prod"
- JAVA_TOOL_OPTIONS=
-Xmx128m
-XX:+IdleTuningGcOnIdle
-XX:+IdleTuningCompactOnIdle
-Xtune:virtualized
-Xscmx128m
-Xscmaxaot100m
-Xquickstart
-Xshareclasses
networks:
- backend
identity-provider:
image: "vetther/idp-identity-provider"
ports:
- "9000:9000"
- "9010:9010"
environment:
- "spring.profiles.active=docker"
- "eureka.instance.prefer-ip-address=true"
- JAVA_TOOL_OPTIONS=
-Xmx128m
-XX:+IdleTuningGcOnIdle
-XX:+IdleTuningCompactOnIdle
-Xgcpolicy:gencon
-Xtune:virtualized
-Xscmx128m
-Xscmaxaot100m
-Xquickstart
-Xshareclasses
depends_on:
- discovery-server
networks:
- backend
deploy:
resources:
limits:
memory: 1000m
cpus: '2'
mail-service:
image: "vetther/idp-mail-service"
ports:
- "8082:8082"
environment:
- "spring.profiles.active=docker"
- JAVA_TOOL_OPTIONS=
-Xmx128m
-XX:+IdleTuningGcOnIdle
-XX:+IdleTuningCompactOnIdle
-Xtune:virtualized
-Xscmx128m
-Xscmaxaot100m
-Xquickstart
-Xshareclasses
networks:
- backend
rabbitmq:
image: 'rabbitmq:3-management-alpine'
container_name: rabbitmq
ports:
- '5672:5672'
- '15672:15672'
volumes:
- ./docker/rabbitmq/rabbit-data:/var/lib/rabbitmq
- ./docker/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
networks:
- backend
redis:
image: 'redis:6-alpine'
container_name: redis
ports:
- '6379:6379'
volumes:
- ./docker/redis/redis-data:/data
networks:
- backend
networks:
backend: