Skip to content

Commit 25c8933

Browse files
committed
infrastructure(docker): 更新 Docker Compose 配置
- 移除 im-gateway 和 im-core-server 服务中的网络和端口配置 - 将网络模式改为 host,以提高性能和简化网络配置
1 parent 944b36c commit 25c8933

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

docker-compose.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ services:
55
image: ${DOCKER_REGISTRY}/${DOCKER_NAMESPACE}/im-gateway:${TAG:-latest}
66
container_name: im-gateway
77
restart: always
8-
networks:
9-
- im-network
10-
ports:
11-
- "8080:8080"
12-
- "9688:9688"
8+
network_mode: host
139
deploy:
1410
resources:
1511
limits:
@@ -28,10 +24,7 @@ services:
2824
image: ${DOCKER_REGISTRY}/${DOCKER_NAMESPACE}/im-core-server:${TAG:-latest}
2925
container_name: im-core-server
3026
restart: always
31-
networks:
32-
- im-network
33-
ports:
34-
- "9601:9601"
27+
network_mode: host
3528
deploy:
3629
resources:
3730
limits:

0 commit comments

Comments
 (0)