-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (41 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
48 lines (41 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
services:
ghost-sync:
image: ronakgh97/ghost-sync-daemon:latest
# build:
# context: .
# dockerfile: Dockerfile
container_name: ghost-sync-daemon
restart: unless-stopped
ports:
- "${GAME_PORT:-7777}:7777"
- "${API_PORT:-7878}:7878"
environment:
LOG_LEVEL: "${LOG_LEVEL:-info}"
command:
- /app/gs-daemon
- run
- --game-addr
- "${GAME_ADDR:-0.0.0.0:7777}"
- --api-addr
- "${API_ADDR:-0.0.0.0:7878}"
# Maximum simultaneous connected clients (default: 1024)
- --max-client
- "${MAX_CLIENT:-1024}"
# Per-client write-channel size in bytes (default: 256 MB = 268435456)
- --channel-capacity
- "${CHANNEL_CAPACITY:-268435456}"
stop_signal: SIGTERM
stop_grace_period: 15s
healthcheck:
test: ["CMD", "test", "-f", "/app/gs-daemon"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: "2"
memory: 512M
reservations:
memory: 128M