-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
27 lines (26 loc) · 965 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3.8'
services:
daikombat-game-server:
image: ghcr.io/beverly-hills-money-gangster/daikombat_server:${TAG}
restart: "always"
volumes:
- ./jvmheap:/app/jvmheap
env_file:
- configs.env
command:
[ "java",
# configure JMX remote
"-Dcom.sun.management.jmxremote.local.only=false",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Dcom.sun.management.jmxremote.authenticate=false",
"-Dcom.sun.management.jmxremote.port=9999",
"-Dcom.sun.management.jmxremote.rmi.port=9999",
"-Dcom.sun.management.jmxremote.host=0.0.0.0",
"-Djava.rmi.server.hostname=127.0.0.1",
# drop a heap dump file on OOM
"-XX:+HeapDumpOnOutOfMemoryError",
"-XX:HeapDumpPath=/app/jvmheap",
"-jar", "server.jar" ]
ports:
- "0.0.0.0:7777:7777" # default server port. exposed to public internet
- "127.0.0.1:9999:9999" # JMX port. localhost only