forked from mtusi2026/mtusi2026lab2
feat-(tests for redis, report updated)
This commit is contained in:
@@ -28,8 +28,11 @@ services:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
ports:
|
||||
- "127.0.0.1:5433:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
command: postgres -c shared_preload_libraries=pg_stat_statements
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
@@ -41,6 +44,8 @@ services:
|
||||
redis:
|
||||
image: redis:8.10-alpine
|
||||
command: redis-server --appendonly yes --save 60 1
|
||||
ports:
|
||||
- "127.0.0.1:6379:6379"
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user