Skip to content

Commit

Permalink
only listen local port
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Jun 13, 2024
1 parent 73a988c commit 3d09f79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
mysql:
image: 'mysql/mysql-server:latest'
ports:
- "9910:3306"
- "127.0.0.1:9910:3306"
environment:
- MYSQL_DATABASE=gorm
- MYSQL_USER=gorm
Expand All @@ -13,7 +13,7 @@ services:
postgres:
image: 'postgres:latest'
ports:
- "9920:5432"
- "127.0.0.1:9920:5432"
environment:
- TZ=Asia/Shanghai
- POSTGRES_DB=gorm
Expand All @@ -22,7 +22,7 @@ services:
mssql:
image: '${MSSQL_IMAGE:-mcmoe/mssqldocker}:latest'
ports:
- "9930:1433"
- "127.0.0.1:9930:1433"
environment:
- TZ=Asia/Shanghai
- ACCEPT_EULA=Y
Expand All @@ -33,5 +33,5 @@ services:
tidb:
image: 'pingcap/tidb:v6.5.0'
ports:
- "9940:4000"
- "127.0.0.1:9940:4000"
command: /tidb-server -store unistore -path "" -lease 0s > tidb.log 2>&1 &

0 comments on commit 3d09f79

Please sign in to comment.