
* Use official SQL Server docker image for tests * Try with tag 2019-latest instead of latest * Use platform ubuntu-20.04 for SQL Server * Switch to 2019-CU18-ubuntu-20.04 * Check with 2022-latest image tag and ubuntu-latest platform * Update health-cmd * Try sqlcmd without -N -C * Re-include -N -C, try with ubuntu-20.04 * Try ubuntu-20.04 without -N -C (last trial) * Finalize working config * Remove unused env variables
33 lines
798 B
YAML
33 lines
798 B
YAML
services:
|
|
mysql:
|
|
image: 'mysql/mysql-server:latest'
|
|
ports:
|
|
- "127.0.0.1:9910:3306"
|
|
environment:
|
|
- MYSQL_DATABASE=gorm
|
|
- MYSQL_USER=gorm
|
|
- MYSQL_PASSWORD=gorm
|
|
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
|
|
postgres:
|
|
image: 'postgres:latest'
|
|
ports:
|
|
- "127.0.0.1:9920:5432"
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- POSTGRES_DB=gorm
|
|
- POSTGRES_USER=gorm
|
|
- POSTGRES_PASSWORD=gorm
|
|
mssql:
|
|
image: '${MSSQL_IMAGE}:2022-latest'
|
|
ports:
|
|
- "127.0.0.1:9930:1433"
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- ACCEPT_EULA=Y
|
|
- MSSQL_SA_PASSWORD=LoremIpsum86
|
|
tidb:
|
|
image: 'pingcap/tidb:v6.5.0'
|
|
ports:
|
|
- "127.0.0.1:9940:4000"
|
|
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &
|