-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
42 lines (40 loc) · 1 KB
/
docker-compose.test.yml
File metadata and controls
42 lines (40 loc) · 1 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
services:
# Redis for testing (L1 Cache)
redis-test:
image: redis:7-alpine
container_name: fiml-redis-test
ports:
- "6381:6379"
command: redis-server --appendonly no --save ""
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
networks:
- fiml-test-network
# PostgreSQL for testing (L2 Cache)
postgres-test:
image: postgres:16-alpine
container_name: fiml-postgres-test
ports:
- "5433:5432"
environment:
- POSTGRES_DB=fiml_test
- POSTGRES_USER=fiml_test
- POSTGRES_PASSWORD=fiml_test_password
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fiml_test -d fiml_test"]
interval: 5s
timeout: 3s
retries: 5
networks:
- fiml-test-network
tmpfs:
- /var/lib/postgresql/data
networks:
fiml-test-network:
driver: bridge