-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 968 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (28 loc) · 968 Bytes
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
services:
matchmaker:
platform: linux/amd64
build:
context: .
args:
GODOT_VERSION: "4.6.3"
GODOT_STATUS: "stable"
image: challenge2026-server:4.6.3
# Ports:
# 3000/tcp — matchmaker HTTP API (container fixed, host via HTTP_PORT)
# N..M/udp — Godot ENet game servers, one per room (via PORT_RANGE_START/END)
ports:
- "${HTTP_PORT:-3000}:3000/tcp"
- "${PORT_RANGE_START:-7777}-${PORT_RANGE_END:-7791}:${PORT_RANGE_START:-7777}-${PORT_RANGE_END:-7791}/udp"
environment:
# Set via .env or override here
- HTTP_PORT=3000
- PORT_RANGE_START=${PORT_RANGE_START:-7777}
- PORT_RANGE_END=${PORT_RANGE_END:-7791}
- GAME_IP=${GAME_IP:-127.0.0.1} # public IP clients connect to
- GODOT_BIN=godot
- GODOT_PROJECT_PATH=/app
volumes:
- godot-import-cache:/app/.godot
restart: unless-stopped
volumes:
godot-import-cache: