35 lines
834 B
YAML
35 lines
834 B
YAML
services:
|
|
kthulu-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: kthulu-postgres
|
|
environment:
|
|
POSTGRES_USER: kthulu
|
|
POSTGRES_PASSWORD: kthulu_dev
|
|
POSTGRES_DB: kthulu
|
|
ports:
|
|
- "25462:5432"
|
|
volumes:
|
|
- kthulu-postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U kthulu"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
kthulu-redis:
|
|
image: redis:7-alpine
|
|
container_name: kthulu-redis
|
|
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru
|
|
ports:
|
|
- "26390:6379"
|
|
volumes:
|
|
- kthulu-redis-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
kthulu-postgres-data:
|
|
kthulu-redis-data:
|