Skip to content

Commit 3d09f79

Browse files
committed
only listen local port
1 parent 73a988c commit 3d09f79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
mysql:
55
image: 'mysql/mysql-server:latest'
66
ports:
7-
- "9910:3306"
7+
- "127.0.0.1:9910:3306"
88
environment:
99
- MYSQL_DATABASE=gorm
1010
- MYSQL_USER=gorm
@@ -13,7 +13,7 @@ services:
1313
postgres:
1414
image: 'postgres:latest'
1515
ports:
16-
- "9920:5432"
16+
- "127.0.0.1:9920:5432"
1717
environment:
1818
- TZ=Asia/Shanghai
1919
- POSTGRES_DB=gorm
@@ -22,7 +22,7 @@ services:
2222
mssql:
2323
image: '${MSSQL_IMAGE:-mcmoe/mssqldocker}:latest'
2424
ports:
25-
- "9930:1433"
25+
- "127.0.0.1:9930:1433"
2626
environment:
2727
- TZ=Asia/Shanghai
2828
- ACCEPT_EULA=Y
@@ -33,5 +33,5 @@ services:
3333
tidb:
3434
image: 'pingcap/tidb:v6.5.0'
3535
ports:
36-
- "9940:4000"
36+
- "127.0.0.1:9940:4000"
3737
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &

0 commit comments

Comments
 (0)