2020-02-23 04:38:48 +03:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql:
|
2022-01-30 17:00:56 +03:00
|
|
|
image: 'mysql/mysql-server:latest'
|
2020-02-23 04:38:48 +03:00
|
|
|
ports:
|
2023-02-27 10:39:02 +03:00
|
|
|
- "9910:3306"
|
2020-02-23 04:38:48 +03:00
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=gorm
|
|
|
|
- MYSQL_USER=gorm
|
|
|
|
- MYSQL_PASSWORD=gorm
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
|
|
|
|
postgres:
|
|
|
|
image: 'postgres:latest'
|
|
|
|
ports:
|
2023-02-27 10:39:02 +03:00
|
|
|
- "9920:5432"
|
2020-02-23 04:38:48 +03:00
|
|
|
environment:
|
2020-03-12 08:05:22 +03:00
|
|
|
- TZ=Asia/Shanghai
|
2020-02-23 04:38:48 +03:00
|
|
|
- POSTGRES_DB=gorm
|
2020-03-04 17:16:39 +03:00
|
|
|
- POSTGRES_USER=gorm
|
2020-02-23 04:38:48 +03:00
|
|
|
- POSTGRES_PASSWORD=gorm
|
|
|
|
mssql:
|
2022-01-30 17:00:56 +03:00
|
|
|
image: '${MSSQL_IMAGE:-mcmoe/mssqldocker}:latest'
|
2020-02-23 04:38:48 +03:00
|
|
|
ports:
|
2023-02-27 10:39:02 +03:00
|
|
|
- "9930:1433"
|
2020-02-23 04:38:48 +03:00
|
|
|
environment:
|
2024-03-18 11:28:46 +03:00
|
|
|
- TZ=Asia/Shanghai
|
2020-02-23 04:38:48 +03:00
|
|
|
- ACCEPT_EULA=Y
|
|
|
|
- SA_PASSWORD=LoremIpsum86
|
|
|
|
- MSSQL_DB=gorm
|
|
|
|
- MSSQL_USER=gorm
|
|
|
|
- MSSQL_PASSWORD=LoremIpsum86
|
2023-02-08 11:29:09 +03:00
|
|
|
tidb:
|
|
|
|
image: 'pingcap/tidb:v6.5.0'
|
|
|
|
ports:
|
2023-02-27 10:39:02 +03:00
|
|
|
- "9940:4000"
|
2023-02-08 11:29:09 +03:00
|
|
|
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &
|