-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
67 lines (63 loc) · 1.99 KB
/
docker-compose.e2e.yml
File metadata and controls
67 lines (63 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# E2E Test Environment - Docker Compose Configuration
# Used by GitHub Actions and local E2E tests
# Provides PostgreSQL, Redis, and MailHog services for testing
services:
postgres-e2e:
image: pgvector/pgvector:pg15
container_name: mirelplatform-postgres-e2e
environment:
POSTGRES_DB: mirelplatform_e2e
POSTGRES_USER: mirel_e2e
POSTGRES_PASSWORD: mirel_e2e_password
# Optimize for faster test execution
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
ports:
- "5433:5432" # Use different port to avoid conflict with dev environment
volumes:
# Use tmpfs for faster I/O in test environment
- type: tmpfs
target: /var/lib/postgresql/data
tmpfs:
size: 1g
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mirel_e2e -d mirelplatform_e2e"]
interval: 5s
timeout: 3s
retries: 10
start_period: 10s
networks:
- mirel-e2e-network
# ⚠️ WARNING: These PostgreSQL settings are for TESTING ONLY
# DO NOT use these settings in production - they disable critical
# durability features and can cause data loss in case of crashes
command: >
postgres
-c shared_buffers=128MB
-c max_connections=100
-c fsync=off
-c synchronous_commit=off
-c full_page_writes=off
redis-e2e:
image: redis:7-alpine
container_name: mirelplatform-redis-e2e
ports:
- "6380:6379" # Use different port to avoid conflict with dev environment
command: redis-server --appendonly no --save ""
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
networks:
- mirel-e2e-network
mailhog-e2e:
image: mailhog/mailhog:latest
container_name: mirelplatform-mailhog-e2e
ports:
- "1026:1025" # SMTP - different port to avoid conflict
- "8026:8025" # Web UI - different port to avoid conflict
networks:
- mirel-e2e-network
networks:
mirel-e2e-network:
driver: bridge