feat: 建立漂流瓶权威数据模型
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user