forked from AchoBeta/refine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
50 lines (48 loc) · 1.23 KB
/
Copy pathdocker-compose-test.yml
File metadata and controls
50 lines (48 loc) · 1.23 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
services:
mysql:
image: mysql:8.0.32
container_name: refine-test-mysql
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: achobeta_refine
ports:
- "23306:3306"
volumes:
- ./docs/mysql/sql:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-p123456"]
interval: 5s
timeout: 10s
retries: 20
start_period: 20s
redis:
image: redis:6.2
container_name: refine-test-redis
restart: unless-stopped
ports:
- "26379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 20
postgres:
image: pgvector/pgvector:pg16
container_name: refine-test-postgres
restart: unless-stopped
ports:
- "25432:5432"
environment:
TZ: Asia/Shanghai
POSTGRES_USER: root
POSTGRES_PASSWORD: 123456
POSTGRES_DB: vector_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d vector_db -h localhost"]
interval: 5s
timeout: 10s
retries: 20
start_period: 15s