feat: 建立漂流瓶权威数据模型

This commit is contained in:
root
2026-09-14 11:10:57 +08:00
parent 18450201dc
commit a2a5e4bd0f
11 changed files with 1926 additions and 11 deletions
+30
View File
@@ -0,0 +1,30 @@
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_TEST_DB:-drift_bottle_test}
POSTGRES_USER: ${POSTGRES_TEST_USER:-drift}
POSTGRES_PASSWORD: ${POSTGRES_TEST_PASSWORD:-drift_test_only}
ports:
- "${POSTGRES_TEST_PORT:-55432}:5432"
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_TEST_USER:-drift} -d ${POSTGRES_TEST_DB:-drift_bottle_test}",
]
interval: 2s
timeout: 3s
retries: 20
tmpfs: ["/var/lib/postgresql/data"]
redis:
image: redis:7-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
ports:
- "${REDIS_TEST_PORT:-56379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 2s
timeout: 3s
retries: 20
tmpfs: ["/data"]