33 lines
No EOL
736 B
YAML
33 lines
No EOL
736 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg16
|
|
container_name: tia-postgres
|
|
environment:
|
|
POSTGRES_DB: tia_dev
|
|
POSTGRES_USER: tia
|
|
POSTGRES_PASSWORD: tia_local_dev
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
- ./docker/init-db:/docker-entrypoint-initdb.d
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U tia -d tia_dev"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: tia-redis
|
|
ports:
|
|
- "6380:6379"
|
|
volumes:
|
|
- ./data/redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5 |