-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.5 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
# Docker Compose configuration for integration tests
# Uses non-default ports to avoid conflicts with local databases
#
# Usage:
# docker compose -f docker-compose.test.yml up -d --wait
# yarn test:integration
# docker compose -f docker-compose.test.yml down -v
services:
postgres:
image: postgres:17-alpine
container_name: noorm-test-postgres
ports:
- "15432:5432"
environment:
POSTGRES_USER: noorm_test
POSTGRES_PASSWORD: noorm_test
POSTGRES_DB: noorm_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U noorm_test"]
interval: 5s
timeout: 5s
retries: 5
tmpfs:
- /var/lib/postgresql/data
mysql:
image: mysql:8.0
container_name: noorm-test-mysql
ports:
- "13306:3306"
environment:
MYSQL_ROOT_PASSWORD: noorm_test
MYSQL_DATABASE: noorm_test
MYSQL_USER: noorm_test
MYSQL_PASSWORD: noorm_test
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 5
tmpfs:
- /var/lib/mysql
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: noorm-test-mssql
ports:
- "11433:1433"
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "NoOrm_Test123!"
MSSQL_PID: Developer
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "NoOrm_Test123!" -C -Q "SELECT 1" || exit 1
interval: 10s
timeout: 5s
retries: 10
start_period: 30s