-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (45 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
51 lines (45 loc) · 1.66 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
49
50
51
services:
timberborn-automation:
build: .
container_name: timberborn-automation
# Port mappings:
# - 8081: Controller webhook server (game → controller)
# - 8000: Dashboard web UI (browser → dashboard)
ports:
- "8081:8081"
- "8000:8000"
# The game API runs on the HOST at localhost:8080
# The container needs to reach the host's localhost
#
# PLATFORM-SPECIFIC NETWORKING:
#
# Option 1: Docker Desktop (Windows/Mac) - use host.docker.internal
# The Dockerfile default config uses host.docker.internal:8080
# This works out of the box on Docker Desktop
#
# Option 2: Linux - uncomment the extra_hosts line below
# Linux doesn't have host.docker.internal by default
# This maps it to the host gateway IP
# extra_hosts:
# - "host.docker.internal:host-gateway"
#
# Option 3: Linux network=host mode (advanced)
# Uncomment the network_mode line and comment out ports above
# Container shares the host's network stack directly
# network_mode: "host"
# Volume mount for config persistence
# REQUIRED: Create your config before first run:
# cp controller/config.example.yaml controller/config.yaml
# Then edit controller/config.yaml with your rules and settings
volumes:
- ./controller/config.yaml:/app/controller/config.yaml:ro
restart: unless-stopped
# Environment variables (override via .env file)
# environment:
# - GAME_API_URL=http://host.docker.internal:8080
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"