92 lines
3.4 KiB
YAML
92 lines
3.4 KiB
YAML
captainVersion: 4
|
|
services:
|
|
$$cap_appname:
|
|
image: itzg/minecraft-server:java19
|
|
environment:
|
|
EULA: 'true'
|
|
TYPE: 'FORGE'
|
|
VERSION: '$$cap_minecraft_version'
|
|
FORGE_VERSION: '$$cap_forge_version'
|
|
MAX_PLAYERS: '$$cap_max_players'
|
|
MODE: '$$cap_game_mode'
|
|
MAX_MEMORY: '$$cap_max_ramG'
|
|
SERVER_NAME: '$$cap_display_name'
|
|
MOTD: '$$cap_display_description'
|
|
ONLINE_MODE: '$$cap_online_mode'
|
|
RCON_PASSWORD: '$$cap_rcon_password'
|
|
ports:
|
|
- '$$cap_mc_port:25565'
|
|
volumes:
|
|
- $$cap_appname-data:/data
|
|
stdin_open: true
|
|
tty: true
|
|
restart: unless-stopped
|
|
caproverExtra:
|
|
notExposeAsWebApp: 'true'
|
|
$$cap_appname-web:
|
|
image: itzg/rcon:multiarch
|
|
environment:
|
|
RWA_USERNAME: $$cap_web_username
|
|
RWA_PASSWORD: $$cap_web_password
|
|
RWA_ADMIN: 'TRUE'
|
|
RWA_RCON_HOST: srv-captain--$$cap_appname
|
|
RWA_RCON_PASSWORD: $$cap_rcon_password
|
|
ports:
|
|
- 4327:4327
|
|
caproverExtra:
|
|
containerHttpPort: '4326'
|
|
caproverOneClickApp:
|
|
variables:
|
|
- id: $$cap_appname
|
|
label: service name
|
|
defaultValue: mc
|
|
- id: $$cap_minecraft_version
|
|
label: Minecraft version
|
|
defaultValue: 1.19.3
|
|
- id: $$cap_forge_version
|
|
label: forge server version
|
|
description: 'choose the version that works with your mc version , see: https://files.minecraftforge.net/'
|
|
defaultValue: 44.1.16
|
|
- id: $$cap_mc_port
|
|
label: Service port
|
|
defaultValue: 25575
|
|
validRegex: /.{1,}/
|
|
- id: $$cap_web_username
|
|
label: admin portal username
|
|
defaultValue: 'admin'
|
|
- id: $$cap_web_password
|
|
label: admin portal password.
|
|
defaultValue: $$cap_gen_random_hex(8)
|
|
- id: $$cap_rcon_password
|
|
label: Rcon cli password
|
|
defaultValue: $$cap_gen_random_hex(8)
|
|
- id: $$cap_max_ram
|
|
label: Max RAM (GB)
|
|
defaultValue: 2
|
|
validRegex: /.{1,}/
|
|
- id: $$cap_display_name
|
|
label: server displayed name
|
|
defaultValue: Minecraft server
|
|
- id: $$cap_display_description
|
|
label: server displayed description
|
|
defaultValue: Minecraft server powerd by docker
|
|
- id: $$cap_online_mode
|
|
label: online mode
|
|
defaultValue: FALSE
|
|
validRegex: /^(TRUE|FALSE)$/
|
|
- id: $$cap_game_mode
|
|
label: game mode
|
|
defaultValue: survival
|
|
validRegex: /^(creative|survival|adventure|spectator)$/
|
|
- id: $$cap_max_players
|
|
label: Max no of players
|
|
defaultValue: 20
|
|
validRegex: /.{1,}/
|
|
instructions:
|
|
start: Minecraft server with dynamic version, server types, and modpack support, this oneclickapp in the Forge version of itzg's Minecraft server.
|
|
end: minecraft is deployed and available as srv-captain--$$cap_appname. Note that the application may take up to ten minutes to become available.
|
|
displayName: Minecraft forge server
|
|
isOfficial: false
|
|
description: Minecraft server with dynamic version, server types, and modpack support, this oneclickapp in the Forge version of itzg's Minecraft server.
|
|
documentation: https://github.com/itzg/docker-minecraft-server
|