43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
services:
|
|
crystal-redis:
|
|
image: redis/redis-stack:7.4.0-v0
|
|
container_name: crystal-redis
|
|
ports:
|
|
- "26384:6379"
|
|
- "8001:8001"
|
|
environment:
|
|
REDIS_ARGS: >-
|
|
--requirepass kv_dev_password
|
|
--appendonly yes
|
|
--maxmemory 1gb
|
|
--maxmemory-policy allkeys-lru
|
|
volumes:
|
|
- crystal-redis-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "-a", "kv_dev_password", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
crystal-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: crystal-postgres
|
|
ports:
|
|
- "25470:5432"
|
|
environment:
|
|
POSTGRES_USER: lilith
|
|
POSTGRES_PASSWORD: kv_dev_password
|
|
POSTGRES_DB: truth_validation
|
|
volumes:
|
|
- crystal-pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U lilith"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
crystal-redis-data:
|
|
crystal-pgdata:
|