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

30 lines
694 B
YAML

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