Skip to content

Magenta-Mause/Cosy-Templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosy

Game Server Template Collection

A collection of validated Docker-based game server templates for easy deployment.

Quickstart

  1. Browse templates in templates/
  2. Use template directly inside your Cosy-Instance
  3. Fill variables (version, memory, etc.)

Example: Minecraft Fabric

templates/minecraft/fabric.yaml

Template Format

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: 2

Full schema: schema/template.schema.json

Games directory

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 games

When adding a template for a game that isn't listed yet, add a matching games/{slug}.yaml in the same PR.

Advanced fields

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, optional read_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

Contributing

Validation

All templates pass CI validation:

  • YAML syntax
  • Schema compliance
  • Port ranges
  • Docker image format

CI runs on every PR: .github/workflows/validate-templates.yml

License

MIT - see LICENSE


⭐ Found a bug? [Report it →] 🚀 Want a new game? [Request it →]


About

COSY Templates — Official and community-maintained JSON templates for Docker Compose and Kubernetes used by COSY.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors