Files
templates/blueprints/fivem/template.toml
Shishir Ahmed eaf5fd5f7e Add FiveM server template with dual deployment modes (#393)
* feat: Added fivem server

* feat: add FiveM server template with dual deployment modes

feat: add FiveM server template with dual deployment modes

- Add docker-compose.yml with spritsail/fivem image
- Support both standard FiveM server and txAdmin web interface modes
- Configure environment variables for license key management
- Add comprehensive documentation for deployment modes
- Include template.toml with optional license key configuration
- Add FiveM logo and meta.json entry
- Support persistent storage for config and txAdmin data
- Configure proper port mapping (30120 game, 40120 web UI)
- Add interactive TTY setup required for FiveM container

Template supports two modes:
- Standard: Direct server with LICENSE_KEY env var
- txAdmin: Web management with NO_DEFAULT_CONFIG=1

* docs: add deployment mode awareness to FiveM docker-compose

docs: clarify FiveM deployment modes in docker-compose

Add detailed comments explaining standard server vs txAdmin modes
to prevent configuration errors and licensing issues.

* Added all env variables.

* fix: follow Dokploy template.toml format
2025-09-27 14:38:46 -06:00

17 lines
331 B
TOML

[variables]
main_domain = "${domain}"
license_key = "${password:32}"
rcon_password = "${password:16}"
[config]
env = [
"LICENSE_KEY=${license_key}",
"RCON_PASSWORD=${rcon_password}",
"NO_DEFAULT_CONFIG=${NO_DEFAULT_CONFIG:-}"
]
mounts = []
[[config.domains]]
serviceName = "fivem"
port = 40120
host = "${main_domain}"