-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (107 loc) · 3.01 KB
/
docker-compose.yml
File metadata and controls
113 lines (107 loc) · 3.01 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
# Docker Compose configuration for local development
services:
postgres:
image: postgres:16-alpine
container_name: sentinel-postgres
environment:
POSTGRES_DB: sentinel_orm
POSTGRES_USER: sentinel
POSTGRES_PASSWORD: sentinel_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U sentinel" ]
interval: 10s
timeout: 5s
retries: 5
clickhouse:
image: clickhouse/clickhouse-server:latest
container_name: sentinel-clickhouse
ports:
- "9000:9000"
- "8123:8123"
volumes:
- clickhouse_data:/var/lib/clickhouse
environment:
- CLICKHOUSE_DB=sentinel_events
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=sanam2021
- CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: [ "CMD", "clickhouse-client", "--query", "SELECT 1" ]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: sentinel-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:latest
container_name: sentinel-redpanda
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
- --smp 1
- --memory 1G
- --mode dev-container
- --default-log-level=info
ports:
- "18081:18081"
- "18082:18082"
- "19092:19092"
- "19644:9644"
volumes:
- redpanda_data:/var/lib/redpanda/data
healthcheck:
test: [ "CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1" ]
interval: 15s
timeout: 3s
retries: 5
redpanda-console:
image: docker.redpanda.com/redpandadata/console:latest
container_name: sentinel-redpanda-console
entrypoint: /bin/sh
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console'
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:9092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
ports:
- "8080:8080"
depends_on:
- redpanda
volumes:
postgres_data:
clickhouse_data:
redis_data:
redpanda_data: