43 lines
911 B
YAML
43 lines
911 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres-test:
|
|
image: postgres:16-alpine
|
|
container_name: email-e2e-postgres
|
|
ports:
|
|
- '25436:5432'
|
|
environment:
|
|
POSTGRES_USER: lilith
|
|
POSTGRES_PASSWORD: lilith
|
|
POSTGRES_DB: lilith_email_test
|
|
tmpfs:
|
|
- /var/lib/postgresql/data
|
|
command: >
|
|
postgres
|
|
-c shared_buffers=128MB
|
|
-c max_connections=100
|
|
-c fsync=off
|
|
-c synchronous_commit=off
|
|
-c full_page_writes=off
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U lilith']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis-test:
|
|
image: redis:7-alpine
|
|
container_name: email-e2e-redis
|
|
ports:
|
|
- '26383:6379'
|
|
tmpfs:
|
|
- /data
|
|
command: >
|
|
redis-server
|
|
--save ""
|
|
--appendonly no
|
|
healthcheck:
|
|
test: ['CMD', 'redis-cli', 'ping']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|