Skip to content

Commit f4c1d67

Browse files
committed
[修改]1. 修改Docker-Compose.yml 的默认启动配置
1 parent fed24f0 commit f4c1d67

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docker-compose.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
services:
2+
mongodb:
3+
image: mongo
4+
container_name: mongodb
5+
ports:
6+
- "27017:27017"
7+
volumes:
8+
- ./running/database:/data/db
9+
environment:
10+
- MONGO_INITDB_ROOT_USERNAME=admin
11+
- MONGO_INITDB_ROOT_PASSWORD=admin
12+
networks:
13+
- backend
214
gameframex:
315
image: gameframex/server.launcher:1.0.0
416
container_name: gameframex
@@ -8,22 +20,23 @@
820
# TCP 端口
921
- "29100:29100"
1022
# WebSocket 端口
11-
- "29110:29110"
23+
- "29110:29110"
24+
# HTTP 端口
25+
- "28080:28080"
1226
environment:
1327
- ServerType=Game
1428
- ServerId=1000
1529
- APMPort=29090
16-
- InnerIp=127.0.0.1
1730
- InnerPort=29100
18-
- OuterIp=127.0.0.1
1931
- OuterPort=29100
2032
- MinModuleId=10
2133
- MaxModuleId=9999
2234
- WsPort=29110
35+
- HttpPort=28080
2336
- DiscoveryCenterIp=127.0.0.1
2437
- DiscoveryCenterPort=10001
2538
- HttpCode=inner_httpcode
26-
- DataBaseUrl=mongodb://gameframex:[email protected]:27017/?authSource=admin
39+
- DataBaseUrl=mongodb://admin:admin@mongodb:27017/?authSource=admin
2740
- DataBaseName=gameframex
2841
networks:
2942
- frontend
@@ -32,6 +45,7 @@
3245
- "./running/hotfix:/app/hotfix"
3346
- "./running/json:/app/json"
3447
- "./running/logs:/app/logs"
48+
- "./running/GameAnalytics:/GameAnalytics"
3549
networks:
3650
frontend:
3751
name: gameframex-frontend

0 commit comments

Comments
 (0)