-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
56 lines (53 loc) · 1.46 KB
/
Copy pathcompose.yml
File metadata and controls
56 lines (53 loc) · 1.46 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
services:
mysql:
image: mysql:8.4
container_name: readmates-mysql
environment:
MYSQL_ROOT_PASSWORD: ${READMATES_LOCAL_MYSQL_ROOT_PASSWORD:-<ci-mysql-password>}
MYSQL_DATABASE: ${READMATES_LOCAL_MYSQL_DATABASE:-readmates}
MYSQL_USER: ${READMATES_LOCAL_MYSQL_USERNAME:-readmates}
MYSQL_PASSWORD: ${READMATES_LOCAL_MYSQL_PASSWORD:-readmates}
ports:
- "${READMATES_LOCAL_MYSQL_PORT:-3306}:3306"
volumes:
- readmates-mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -u$${MYSQL_USER} -p$${MYSQL_PASSWORD} --silent"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
redis:
image: redis:7.4-alpine
container_name: readmates-redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
start_period: 5s
kafka:
image: docker.redpanda.com/redpandadata/redpanda:v24.3.7
command:
- redpanda
- start
- --overprovisioned
- --smp=1
- --memory=512M
- --reserve-memory=0M
- --node-id=0
- --check=false
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr=PLAINTEXT://localhost:9092
ports:
- "9092:9092"
healthcheck:
test: ["CMD", "rpk", "cluster", "info"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
readmates-mysql-data: