-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
35 lines (33 loc) · 947 Bytes
/
docker-compose.test.yml
File metadata and controls
35 lines (33 loc) · 947 Bytes
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
# Docker Compose file for integration testing
# Usage:
# make postgres-up / make test-postgres / make postgres-down
# make ssh-up / make test-ssh / make ssh-down
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: agentsview_test
POSTGRES_PASSWORD: agentsview_test_password
POSTGRES_DB: agentsview_test
ports:
- "5433:5432" # Non-standard port to avoid conflict with local postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentsview_test -d agentsview_test"]
interval: 2s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/postgresql/data # Use tmpfs for faster tests, no persistence needed
sshd:
build:
context: .
dockerfile: testdata/ssh/Dockerfile
ports:
- "2222:22"
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 22"]
interval: 2s
timeout: 5s
retries: 10
tmpfs:
- /tmp