life-deployments/docker/docker-compose.test.yml

30 lines
701 B
YAML

services:
postgres-test:
image: postgres:16-alpine
container_name: life-platform-postgres-test
ports:
- '25472:5432'
environment:
POSTGRES_DB: life_manager_test
POSTGRES_USER: lilith
POSTGRES_PASSWORD: test_password
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U lilith -d life_manager_test']
interval: 2s
timeout: 5s
retries: 10
redis-test:
image: redis:7-alpine
container_name: life-platform-redis-test
ports:
- '26371:6379'
tmpfs:
- /data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 2s
timeout: 5s
retries: 10