forked from IU-Capstone-Project-2025/Fluently
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
41 lines (38 loc) · 1.15 KB
/
docker-compose.test.yml
File metadata and controls
41 lines (38 loc) · 1.15 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
# ===========================================
# TEST DATABASE FOR GITHUB ACTIONS
# ===========================================
# This file should be used only for testing workflows
# Usage: docker compose -f docker-compose.test.yml up -d
services:
test_db:
image: postgres:15
container_name: fluently_test_db
environment:
POSTGRES_DB: test_fluently_db
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5433:5432" # Different port to avoid conflicts
volumes:
- test_pgdata:/var/lib/postgresql/data/pgdata
# Initialize with same schema as main DB if needed
- ./backend/init.sql:/docker-entrypoint-initdb.d/init.sql
command: >
postgres -c max_connections=100
-c shared_buffers=128MB
-c effective_cache_size=256MB
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test_user -d test_fluently_db"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
networks:
- test_network
volumes:
test_pgdata:
networks:
test_network:
driver: bridge