-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathcompose.yml
More file actions
119 lines (107 loc) 路 2.81 KB
/
Copy pathcompose.yml
File metadata and controls
119 lines (107 loc) 路 2.81 KB
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
services:
redis:
image: redis:6.2-alpine
ports:
- "6379:6379"
valkey:
image: valkey/valkey:8.1-alpine
ports:
- "6380:6379"
valkey-cluster:
profiles:
- cluster
image: valkey/valkey:8.1-alpine
depends_on:
- valkey-node-1
- valkey-node-2
- valkey-node-3
entrypoint: ["/bin/sh", "-c"]
command:
- |
sleep 5
valkey-cli --cluster create valkey-node-1:6379 valkey-node-2:6379 valkey-node-3:6379 --cluster-replicas 0 --cluster-yes
tail -f /dev/null
networks:
- valkey-cluster
valkey-node-1:
profiles:
- cluster
image: valkey/valkey:8.1-alpine
command: valkey-server --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes --port 6379 --cluster-announce-ip valkey-node-1
ports:
- "7100:6379"
networks:
- valkey-cluster
valkey-node-2:
profiles:
- cluster
image: valkey/valkey:8.1-alpine
command: valkey-server --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes --port 6379 --cluster-announce-ip valkey-node-2
ports:
- "7101:6379"
networks:
- valkey-cluster
valkey-node-3:
profiles:
- cluster
image: valkey/valkey:8.1-alpine
command: valkey-server --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes --port 6379 --cluster-announce-ip valkey-node-3
ports:
- "7102:6379"
networks:
- valkey-cluster
redis-cluster:
profiles:
- cluster
image: grokzen/redis-cluster:7.0.8
environment:
- IP=0.0.0.0
- INITIAL_PORT=7000
- MASTERS=3
- SLAVES_PER_MASTER=0
ports:
- "7000:7000"
- "7001:7001"
- "7002:7002"
redis-insight:
image: redis/redisinsight:latest
ports:
- "5540:5540"
dynamodb:
image: amazon/dynamodb-local
ports:
- "8000:8000"
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: mysql
ports:
- "3306:3306"
lgtm:
image: grafana/otel-lgtm:latest
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3001:3000" # Grafana
- "3100:3100" # Loki HTTP API
- "3200:3200" # Tempo HTTP API
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "9090:9090" # Prometheus
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
networks:
valkey-cluster: