-
Notifications
You must be signed in to change notification settings - Fork 96
/
docker-compose.yml
59 lines (55 loc) · 1.42 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
version: '3'
services:
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
POSTGRES_DB: gormigrate
POSTGRES_USER: gormigrate
POSTGRES_PASSWORD: gormigrate
healthcheck:
test: pg_isready --username="$${POSTGRES_USER}" --dbname="$${POSTGRES_DB}"
interval: 2s
timeout: 3s
retries: 10
mysql:
image: mysql:8
ports:
- 3306:3306
environment:
MYSQL_DATABASE: gormigrate
MYSQL_ROOT_PASSWORD: gormigrate
MYSQL_USER: gormigrate
MYSQL_PASSWORD: gormigrate
healthcheck:
test: mysqladmin ping --user="$${MYSQL_USER}" --password="$${MYSQL_PASSWORD}"
interval: 2s
timeout: 3s
retries: 10
mariadb:
image: mariadb:11
ports:
- 3307:3306
environment:
MARIADB_DATABASE: gormigrate
MARIADB_ROOT_PASSWORD: gormigrate
MARIADB_USER: gormigrate
MARIADB_PASSWORD: gormigrate
healthcheck:
test: healthcheck.sh --su-mysql --connect --innodb_initialized
interval: 2s
timeout: 3s
retries: 10
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- 1433:1433
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: LoremIpsum86
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$${MSSQL_SA_PASSWORD}" -Q "SELECT 1" -b -o /dev/null
interval: 5s
timeout: 3s
retries: 20