-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.minimal.yml
More file actions
53 lines (50 loc) · 1.31 KB
/
docker-compose.minimal.yml
File metadata and controls
53 lines (50 loc) · 1.31 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
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: streaming-redis-test
ports:
- "6379:6379"
command: redis-server --appendonly no --save ""
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
tmpfs:
- /data
mysql:
image: mysql:8.0
container_name: streaming-mysql-test
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: test_password
MYSQL_DATABASE: test_db
MYSQL_USER: test_user
MYSQL_PASSWORD: test_password
command: --default-authentication-plugin=mysql_native_password --binlog-format=ROW --log-bin=mysql-bin --server-id=1
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ptest_password"]
interval: 10s
timeout: 5s
retries: 5
tmpfs:
- /var/lib/mysql
postgres:
image: postgres:15-alpine
container_name: streaming-postgres-test
ports:
- "5432:5432"
environment:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
POSTGRES_DB: test_db
command: postgres -c wal_level=logical
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test_user"]
interval: 10s
timeout: 5s
retries: 5
tmpfs:
- /var/lib/postgresql/data