# Project Reclaimer dedicated servers in Docker (Linux containers, the game # running natively), one container per server. Guide: docs/servers.md. # # This file is all a host needs: it runs the published image, so no copy # of the repository and no build. It is Project Reclaimer 0.9's file with # the same services, folders and volume: a host of 0.9 updates with # docker compose pull && docker compose up -d # and keeps its server folder, its settings and its servers' keys. # # Put it in a folder of its own, then: # # 1. Copy Halo 3's files from your own MCC installation into # server/game/ next to this file (halo3/halo3.dll, halo3/maps/shared.map, # the maps you host, and campaign.map with 040_voi.map for Forge's # campaign vehicles and AI). `project-reclaimer dedicated init server # --from` on a PC with MCC copies them. The image contains no game files. # 2. Optional: a .env file next to this one with your settings # (see .env.example). # 3. docker compose up -d # docker compose logs -f # # On first start the containers write a commented dedicated.toml into the # server folder; edit it for names, maps, playlists and admins (edits apply # while the servers run). Each service below runs one [[server]] of that # file: server-1 the first, server-2 the second. For another server, add a # [[server]] block there and a service here like server-2, with the next # number. Commands for running servers: # docker compose exec server-1 dedicated status # docker compose exec server-1 dedicated ban --reason "..." # (bans.json is shared: a ban applies to every server.) # Update to a new release: docker compose pull && docker compose up -d # # The containers use the host's network: each server's own UDP port and the # machine's master (TCP and UDP 49175) need no list of ports here, and the # servers share one master. Open them in the firewall. Where host # networking is not available, compose.single.yaml runs every server in # one container on published ports instead. # # To build the image from a checkout of the repository instead, add # compose.build.yaml; for a master, stats service or social service of # your own, compose.services.yaml (see there). name: reclaimer # What every server's container shares. x-server: &server # The newest release; set IMAGE in .env to stay on one version. image: ${IMAGE:-ghcr.io/projectreclaimer/project-reclaimer-dedicated:latest} restart: unless-stopped # The supervisor stops its servers cleanly on Ctrl+C (SIGINT). stop_signal: SIGINT stop_grace_period: 30s # Every RECLAIMER_DEDICATED_* setting in .env overrides dedicated.toml, # as do PUID and PGID (see .env.example). env_file: - path: .env required: false volumes: - ${SERVER_DIR:-./server}:/server # Read-only: the servers never change the game files. - ${GAME_DIR:-./server/game}:/server/game:ro # The Forge library and other caches, kept across updates. - cache:/cache network_mode: host security_opt: - no-new-privileges:true # Roughly per server: under 0.1 core and 100 MB waiting, a core and # 0.6-0.9 GB in a full game (more briefly while loading a map). Uncomment # to cap or pin a server, e.g. per service: cpus: "1.5" or cpuset: "2,3". # cpus: "2" # mem_limit: 3g logging: driver: json-file options: max-size: 10m max-file: "3" services: server-1: <<: *server environment: # The [[server]] this container runs: its position in dedicated.toml, # its name or its game port. RECLAIMER_DEDICATED_ONLY: "1" server-2: <<: *server environment: RECLAIMER_DEDICATED_ONLY: "2" volumes: cache: