-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.integration.yml
More file actions
39 lines (37 loc) · 997 Bytes
/
Copy pathdocker-compose.integration.yml
File metadata and controls
39 lines (37 loc) · 997 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
36
37
38
39
# Docker Compose for integration tests.
#
# Spins up Postgres and MySQL for running the #[ignore] provider tests.
# Usage: docker compose -f docker-compose.integration.yml up -d --wait
# or: ./scripts/test-integration.sh (handles lifecycle automatically)
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: conduit
POSTGRES_PASSWORD: conduit_test
POSTGRES_DB: testdb
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U conduit -d testdb"]
interval: 2s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/postgresql/data
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: conduit
MYSQL_PASSWORD: conduit_test
MYSQL_DATABASE: testdb
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"]
interval: 2s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/mysql