-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (72 loc) · 1.85 KB
/
docker-compose.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
mariadb_test:
build: test/acceptance/mariadb/container
volumes:
- .:/usr/src/unixodbc
environment:
DB_HOST: mariadb
depends_on:
mariadb:
condition: service_healthy
command: go test -count 1 -race -tags acceptance ./test/acceptance/mariadb
mariadb:
image: "mariadb:10.9-jammy"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_TCP_PORT: 3306
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=test
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
postgres_test:
build: test/acceptance/postgres/container
volumes:
- .:/usr/src/unixodbc
environment:
DB_HOST: postgres
depends_on:
postgres:
condition: service_healthy
command: go test -count 1 -race -tags acceptance ./test/acceptance/postgres
postgres:
image: "postgres:16-bookworm"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: test
PGUSER: postgres
healthcheck:
test: pg_isready
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
mssql_test:
build: test/acceptance/mssql/container
volumes:
- .:/usr/src/unixodbc
environment:
DB_HOST: mssql
depends_on:
mssql:
condition: service_healthy
command: go test -count 1 -race -tags acceptance ./test/acceptance/mssql
mssql:
image: "mcr.microsoft.com/mssql/server:2022-latest"
ports:
- "1433:1433"
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: Acceptance!
MSSQL_PID: Developer
MSSQL_TCP_PORT: 1433
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -C -S localhost -U SA -P "$${MSSQL_SA_PASSWORD}" -Q "SELECT @@version" || exit 1
start_period: 10s
interval: 5s
timeout: 5s
retries: 55