test(postgress): lab7 add roles ACL for redis
This commit is contained in:
+9
-10
@@ -46,18 +46,16 @@ services:
|
||||
redis:
|
||||
image: redis:7.4-alpine
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- redis-server
|
||||
- --appendonly
|
||||
- "yes"
|
||||
- --appendfsync
|
||||
- everysec
|
||||
- --save
|
||||
- "60 1000"
|
||||
command: ["redis-server", "/etc/redis/lab.conf"]
|
||||
volumes:
|
||||
- ./infra/redis/redis.conf:/etc/redis/lab.conf:ro
|
||||
- ./certs/private/ingress/ca.crt:/run/redis/ca.crt:ro
|
||||
- ./certs/private/redis/server.crt:/run/redis/server.crt:ro
|
||||
- ./certs/private/redis/server.key:/run/redis/server.key:ro
|
||||
- ./certs/private/redis/users.acl:/run/redis/users.acl:ro
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
test: ["CMD-SHELL", "redis-cli -h redis --tls --cacert /run/redis/ca.crt --user health -a health --no-auth-warning ping | grep -qx PONG"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
@@ -200,6 +198,7 @@ services:
|
||||
image: mtusi-messenger-api:lab3
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
SSL_CERT_FILE: "/run/postgres/ca.crt"
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318}"
|
||||
OTEL_METRIC_EXPORT_INTERVAL: "${OTEL_METRIC_EXPORT_INTERVAL:-15000}"
|
||||
OTEL_SDK_DISABLED: "${OTEL_SDK_DISABLED:-false}"
|
||||
@@ -467,7 +466,7 @@ secrets:
|
||||
db_reconciler:
|
||||
file: ./certs/private/postgres/reconciler.url
|
||||
cache_url:
|
||||
file: ./secrets/cache_url
|
||||
file: ./certs/private/redis/api.url
|
||||
minio_root_user:
|
||||
file: ./secrets/minio_root_user
|
||||
minio_root_password:
|
||||
|
||||
Reference in New Issue
Block a user