mirror of https://github.com/go-gorm/gorm.git
only listen local port
This commit is contained in:
parent
73a988ceb2
commit
3d09f7947f
|
@ -4,7 +4,7 @@ services:
|
||||||
mysql:
|
mysql:
|
||||||
image: 'mysql/mysql-server:latest'
|
image: 'mysql/mysql-server:latest'
|
||||||
ports:
|
ports:
|
||||||
- "9910:3306"
|
- "127.0.0.1:9910:3306"
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=gorm
|
- MYSQL_DATABASE=gorm
|
||||||
- MYSQL_USER=gorm
|
- MYSQL_USER=gorm
|
||||||
|
@ -13,7 +13,7 @@ services:
|
||||||
postgres:
|
postgres:
|
||||||
image: 'postgres:latest'
|
image: 'postgres:latest'
|
||||||
ports:
|
ports:
|
||||||
- "9920:5432"
|
- "127.0.0.1:9920:5432"
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- POSTGRES_DB=gorm
|
- POSTGRES_DB=gorm
|
||||||
|
@ -22,7 +22,7 @@ services:
|
||||||
mssql:
|
mssql:
|
||||||
image: '${MSSQL_IMAGE:-mcmoe/mssqldocker}:latest'
|
image: '${MSSQL_IMAGE:-mcmoe/mssqldocker}:latest'
|
||||||
ports:
|
ports:
|
||||||
- "9930:1433"
|
- "127.0.0.1:9930:1433"
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- ACCEPT_EULA=Y
|
- ACCEPT_EULA=Y
|
||||||
|
@ -33,5 +33,5 @@ services:
|
||||||
tidb:
|
tidb:
|
||||||
image: 'pingcap/tidb:v6.5.0'
|
image: 'pingcap/tidb:v6.5.0'
|
||||||
ports:
|
ports:
|
||||||
- "9940:4000"
|
- "127.0.0.1:9940:4000"
|
||||||
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &
|
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &
|
||||||
|
|
Loading…
Reference in New Issue