Complete lab2 grade 4 implementation and report
This commit is contained in:
@@ -6,6 +6,7 @@ services:
|
||||
environment:
|
||||
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
|
||||
DATABASE_PASSWORD_FILE: /run/secrets/postgres_password
|
||||
REDIS_ADDR: redis:6379
|
||||
secrets:
|
||||
- postgres_password
|
||||
ports:
|
||||
@@ -15,8 +16,21 @@ services:
|
||||
condition: service_healthy
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
redis:
|
||||
condition: service_started
|
||||
stop_grace_period: 15s
|
||||
|
||||
redis:
|
||||
image: redis:7.4.11-alpine
|
||||
command: ["redis-server", "--save", "", "--appendonly", "no", "--maxmemory", "64mb", "--maxmemory-policy", "allkeys-lru"]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 3s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
tmpfs:
|
||||
- /data
|
||||
|
||||
migrate:
|
||||
image: postgres:17.9-bookworm
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user