A collection of validated Docker-based game server templates for easy deployment.
- Browse templates in templates/
- Use template directly inside your Cosy-Instance
- Fill variables (version, memory, etc.)
Example: Minecraft Fabric
templates/minecraft/fabric.yaml
Every template follows this structure:
name: Minecraft Fabric
description: Minecraft Fabric Server with default fabric installation
variables:
- name: Minecraft Version
type: string
regex: \d\.\d+\.\d+
placeholder: version
example: '1.21.5'
game_id: minecraft # slug from games/minecraft.yaml
docker_image_name: itzg/minecraft-server
docker_image_tag: latest
environment_variables:
VERSION: '{{version}}'
EULA: 'true'
port_mapping:
'25565/tcp': 25565
file_mounts:
- /data # cosy-managed persistent volume
resource_limit:
memory: 4GiB
cpu: 2Full schema: schema/template.schema.json
Every template's game_id references a slug — the filename (without .yaml) of an entry under games/. Each game file carries the display name and artwork URLs used in the Cosy UI:
# games/minecraft.yaml
name: Minecraft
logo_url: https://cdn2.steamgriddb.com/logo/...
hero_url: https://cdn2.steamgriddb.com/hero/...
external_game_id: 38365 # legacy SteamGridDB id; omit for new gamesWhen adding a template for a game that isn't listed yet, add a matching games/{slug}.yaml in the same PR.
Templates may also include:
annotations— Docker container labels applied at launch (all users). Values may contain{{var}}placeholders.host_mounts— direct host-path bind mounts (host_path → container_path, optionalread_only). Enforced admin-only at runtime.
annotations:
traefik.enable: 'true'
host_mounts:
- host_path: /var/run/docker.sock
container_path: /var/run/docker.sock
read_only: true- Add new templates: CONTRIBUTING.md
- Request games: New template issue
- Report bugs: Bug report issue
All templates pass CI validation:
- YAML syntax
- Schema compliance
- Port ranges
- Docker image format
CI runs on every PR: .github/workflows/validate-templates.yml
MIT - see LICENSE
⭐ Found a bug? [Report it →] 🚀 Want a new game? [Request it →]