-
-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.76 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
services:
mysql:
image: mysql:8.0
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dibi_test
healthcheck:
test: mysqladmin ping -proot
interval: 10s
timeout: 5s
retries: 5
postgres96:
image: postgres:9.6
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dibi_test
healthcheck:
test: pg_isready
interval: 10s
timeout: 5s
retries: 5
postgres13:
image: postgres:13
ports:
- "5434:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dibi_test
healthcheck:
test: pg_isready
interval: 10s
timeout: 5s
retries: 5
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- "1434:1433"
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "YourStrong!Passw0rd"
MSSQL_PID: Developer
healthcheck:
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -d dibi_test -Q 'SELECT 1' -N -C
interval: 10s
start_period: 30s
timeout: 5s
retries: 5
entrypoint: /bin/bash -c "/opt/mssql/bin/sqlservr & until /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1' -N -C 2>/dev/null; do sleep 2; done && /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE dibi_test' -N -C; wait"