Made a template


Recommended Posts

First off, Thanks to "Squid" for giving me the correct links.

 

Made my first custom template and if possible want to have some feedback if there are errors/improvements. The docker is the official Teamspeak docker

 

<?xml version="1.0"?>
<Container version="2">
  <Name>TeamSpeak-officialdocker</Name>
  <Repository>teamspeak</Repository>
  <Registry>https://hub.docker.com/_/teamspeak</Registry>
  <Network>bridge</Network>
  <MyIP/>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Support></Support>
  <Project>https://www.teamspeak.com</Project>
  <Overview>Custom unRaid template for the official Teamspeak docker</Overview>
  <Category>Network:Voip</Category>
  <WebUI/>
  <TemplateURL/>
  <Icon>https://doc-00-1k-docs.googleusercontent.com/docs/securesc/b6reib6uv94p6bgim8clfjd2jnv7cqfo/5p2utgn3jl0a7hk7r0hvh6vpb7cudr60/1587051225000/11697061169317923007/03367201584346150447/1BED1EoPQ4sHrTwx8j8l62kaz1liufSOL?authuser=0</Icon>
  <ExtraParams/>
  <PostArgs/>
  <CPUset/>
  <DateInstalled></DateInstalled>
  <DonateText/>
  <DonateLink/>
  <Description>Custom unRaid template for the official Teamspeak docker</Description>
  <Networking>
    <Mode>bridge</Mode>
    <Publish>
      <Port>
        <HostPort>9987</HostPort>
        <ContainerPort>9987</ContainerPort>
        <Protocol>udp</Protocol>
      </Port>
      <Port>
        <HostPort>10011</HostPort>
        <ContainerPort>10011</ContainerPort>
        <Protocol>tcp</Protocol>
      </Port>
      <Port>
        <HostPort>30033</HostPort>
        <ContainerPort>30033</ContainerPort>
        <Protocol>tcp</Protocol>
      </Port>
    </Publish>
  </Networking>
  <Data>
    <Volume>
      <HostDir></HostDir>
      <ContainerDir>/var/ts3server/</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
    <Volume>
      <HostDir></HostDir>
      <ContainerDir>/var/run/ts3server</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
  <Environment>
    <Variable>
      <Value>accept</Value>
      <Name>TS3SERVER_LICENSE</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>9987</Value>
      <Name>TS3SERVER_DEFAULT_VOICE_PORT</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>10011</Value>
      <Name>TS3SERVER_QUERY_PORT</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>10022</Value>
      <Name>TS3SERVER_QUERY_SSH_PORT</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>30033</Value>
      <Name>TS3SERVER_FILETRANSFER_PORT</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>raw</Value>
      <Name>TS3SERVER_QUERY_PROTOCOLS</Name>
      <Mode/>
    </Variable>
    <Variable>
      <Value>30</Value>
      <Name>TS3SERVER_DB_CLIENTKEEPDAYS</Name>
      <Mode/>
    </Variable>
  </Environment>
  <Labels/>
  <Config Name="Data Path" Target="/var/ts3server/" Default="" Mode="rw" Description="Path where the database is stored" Type="Path" Display="always" Required="true" Mask="false"></Config>
  <Config Name="Config Folder" Target="/var/run/ts3server" Default="" Mode="rw" Description="Path where the ts3server.ini and ts3db.ini files are stored" Type="Path" Display="always" Required="false" Mask="false"></Config>
  <Config Name="UDP - Voice Port" Target="9987" Default="9987" Mode="udp" Description="UDP voice port. Default=9987" Type="Port" Display="always" Required="true" Mask="false">9987</Config>
  <Config Name="TCP - Query Port:" Target="10011" Default="10011" Mode="tcp" Description="TCP query port. Default=10011" Type="Port" Display="always" Required="true" Mask="false">10011</Config>
  <Config Name="TCP2 - File Transfer:" Target="30033" Default="30033" Mode="tcp" Description="TCP file transfer port. Default=30033" Type="Port" Display="always" Required="true" Mask="false">30033</Config>
  <Config Name="License Agreement" Target="TS3SERVER_LICENSE" Default="accept" Mode="" Description="Set to 'accept' if you agree the license agreement" Type="Variable" Display="always" Required="true" Mask="false">accept</Config>
  <Config Name="Host Key 1" Target="TS3SERVER_DEFAULT_VOICE_PORT" Default="9987" Mode="" Description="Container Variable: TS3SERVER_DEFAULT_VOICE_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">9987</Config>
  <Config Name="Host Key 2" Target="TS3SERVER_QUERY_PORT" Default="10011" Mode="" Description="Container Variable: TS3SERVER_QUERY_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">10011</Config>
  <Config Name="Host Key 3" Target="TS3SERVER_QUERY_SSH_PORT" Default="10022" Mode="" Description="Container Variable: TS3SERVER_QUERY_SSH_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">10022</Config>
  <Config Name="Host Key 4" Target="TS3SERVER_FILETRANSFER_PORT" Default="30033" Mode="" Description="Container Variable: TS3SERVER_FILETRANSFER_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">30033</Config>
  <Config Name="Host Key 5" Target="TS3SERVER_QUERY_PROTOCOLS" Default="raw" Mode="" Description="Container Variable: TS3SERVER_QUERY_PROTOCOLS" Type="Variable" Display="advanced-hide" Required="false" Mask="false">raw</Config>
  <Config Name="Host Key 6" Target="TS3SERVER_DB_CLIENTKEEPDAYS" Default="30" Mode="" Description="Container Variable: TS3SERVER_DB_CLIENTKEEPDAYS" Type="Variable" Display="advanced-hide" Required="false" Mask="false">30</Config>
</Container>

Sorry for the typos. English is not main language

  • Like 1
Link to comment
<?xml version="1.0"?>
<Container version="2">
  <Name>TeamSpeak-officialdocker</Name>
  <Repository>teamspeak</Repository>
  <Registry>https://hub.docker.com/_/teamspeak</Registry>
  <Network>bridge</Network>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Support></Support>
  <Project>https://www.teamspeak.com</Project>
  <Overview>Custom unRaid template for the official Teamspeak docker</Overview>
  <Category>Network:Voip</Category>
  <TemplateURL/>
  <Icon>https://i.imgur.com/pg6LstR.png</Icon>
  <Description>Custom unRaid template for the official Teamspeak docker</Description>
  <Config Name="Data Path" Target="/var/ts3server/" Default="" Mode="rw" Description="Path where the database is stored" Type="Path" Display="always" Required="true" Mask="false"></Config>
  <Config Name="Config Folder" Target="/var/run/ts3server" Default="" Mode="rw" Description="Path where the ts3server.ini and ts3db.ini files are stored" Type="Path" Display="always" Required="false" Mask="false"></Config>
  <Config Name="UDP - Voice Port" Target="9987" Default="9987" Mode="udp" Description="UDP voice port. Default=9987" Type="Port" Display="always" Required="true" Mask="false">9987</Config>
  <Config Name="TCP - Query Port:" Target="10011" Default="10011" Mode="tcp" Description="TCP query port. Default=10011" Type="Port" Display="always" Required="true" Mask="false">10011</Config>
  <Config Name="TCP2 - File Transfer:" Target="30033" Default="30033" Mode="tcp" Description="TCP file transfer port. Default=30033" Type="Port" Display="always" Required="true" Mask="false">30033</Config>
  <Config Name="License Agreement" Target="TS3SERVER_LICENSE" Default="accept" Mode="" Description="Set to 'accept' if you agree the license agreement" Type="Variable" Display="always" Required="true" Mask="false">accept</Config>
  <Config Name="DEFAULT_VOICE_PORT" Target="TS3SERVER_DEFAULT_VOICE_PORT" Default="9987" Mode="" Description="Container Variable: TS3SERVER_DEFAULT_VOICE_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">9987</Config>
  <Config Name="QUERY_PORT" Target="TS3SERVER_QUERY_PORT" Default="10011" Mode="" Description="Container Variable: TS3SERVER_QUERY_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">10011</Config>
  <Config Name="QUERY_SSH_PORT" Target="TS3SERVER_QUERY_SSH_PORT" Default="10022" Mode="" Description="Container Variable: TS3SERVER_QUERY_SSH_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">10022</Config>
  <Config Name="FILETRANSFER_PORT" Target="TS3SERVER_FILETRANSFER_PORT" Default="30033" Mode="" Description="Container Variable: TS3SERVER_FILETRANSFER_PORT" Type="Variable" Display="advanced-hide" Required="false" Mask="false">30033</Config>
  <Config Name="QUERY_PROTOCOLS" Target="TS3SERVER_QUERY_PROTOCOLS" Default="raw" Mode="" Description="Container Variable: TS3SERVER_QUERY_PROTOCOLS" Type="Variable" Display="advanced-hide" Required="false" Mask="false">raw</Config>
  <Config Name="DB_CLIENTKEEPDAYS" Target="TS3SERVER_DB_CLIENTKEEPDAYS" Default="30" Mode="" Description="Container Variable: TS3SERVER_DB_CLIENTKEEPDAYS" Type="Variable" Display="advanced-hide" Required="false" Mask="false">30</Config>
</Container>

All it need is clean up. You can add support link to your topic in this forum and template if you are putting it on Github.

Good job.

Link to comment

Thanks for the replay.

Have changed what was not needed.

Have also added some more variables and changed the descriptions of it

 

<?xml version="1.0"?>
<Container version="2">
  <Name>teamSpeak-officialdocker</Name>
  <Repository>teamspeak:latest</Repository>
  <Registry>https://hub.docker.com/_/teamspeak</Registry>
  <Network>bridge</Network>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Support></Support>
  <Project>https://www.teamspeak.com</Project>
  <Overview>Custom unRaid template for the official Teamspeak docker. For importing an existing database and/or license key put the database and license in the 'AppData' folder and start the docker. The docker will set the permissions in the 'Host Path' on every start/restart.</Overview>
  <Category>Network:Voip</Category>
  <TemplateURL>https://github.com/Pepreal/TeamSpeak-unRaid-docker-template/blob/master/teamspeak-officialdocker.xml</TemplateURL>
  <Icon>https://pa2old.nl/pic/ts_stacked_bluelight.png</Icon>
  <Description>Custom unRaid template for the official Teamspeak docker. For importing an existing database and/or license key put the database and license in the 'AppData' folder and start the docker. The docker will set the permissions in the 'Host Path' on every start/restart.</Description>
  <Config Name="AppData Config Path" Target="/var/ts3server/" Default="" Mode="rw" Description="Path where the database is stored." Type="Path" Display="always" Required="true" Mask="false"></Config>
  <Config Name="UDP - Voice Port" Target="9987" Default="9987" Mode="udp" Description="UDP voice port. Default=9987" Type="Port" Display="always" Required="true" Mask="false">9987</Config>
  <Config Name="TCP - Query Port:" Target="10011" Default="10011" Mode="tcp" Description="TCP query port. Default=10011" Type="Port" Display="always" Required="true" Mask="false">10011</Config>
  <Config Name="TCP - File Transfer:" Target="30033" Default="30033" Mode="tcp" Description="TCP filetransfer port. Default=30033" Type="Port" Display="always" Required="true" Mask="false">30033</Config>
  <Config Name="License Agreement" Target="TS3SERVER_LICENSE" Default="" Mode="" Description="Set to 'accept' if you agree with the license agreement." Type="Variable" Display="always" Required="true" Mask="false"></Config>
  <Config Name="TS3SERVER_LICENSEPATH" Target="TS3SERVER_LICENSEPATH" Default="/var/ts3server/" Mode="" Description="Sets the path where the TeamSpeak server is looking for the licensekey.dat. This variable is the path to the directory where the licensekey.dat is supposed to be located. Defaults to /var/ts3server/." Type="Variable" Display="advanced-hide" Required="false" Mask="false">/var/ts3server/</Config>
  <Config Name="TS3SERVER_DEFAULT_VOICE_PORT" Target="TS3SERVER_DEFAULT_VOICE_PORT" Default="9987" Mode="" Description="This variable controls the default UDP voice port." Type="Variable" Display="advanced-hide" Required="false" Mask="false">9987</Config>
  <Config Name="TS3SERVER_QUERY_PORT" Target="TS3SERVER_QUERY_PORT" Default="10011" Mode="" Description="This variable controls the default TCP query port." Type="Variable" Display="advanced-hide" Required="false" Mask="false">10011</Config>
  <Config Name="TS3SERVER_QUERY_SSH_PORT" Target="TS3SERVER_QUERY_SSH_PORT" Default="10022" Mode="" Description="This variable controls the default SSH query port." Type="Variable" Display="advanced-hide" Required="false" Mask="false">10022</Config>
  <Config Name="TS3SERVER_QUERY_PROTOCOLS" Target="TS3SERVER_QUERY_PROTOCOLS" Default="raw" Mode="" Description="Comma separated list of protocols that can be used to connect to the ServerQuery. Possible values are raw and ssh. If raw is specified a raw or 'classic' ServerQuery is opened on 10011/tcp. If ssh is specified an encrypted ServerQuery using SSH is opened at 10022/tcp. Any combination of the aforementioned values can be specified in this parameter, including leaving it empty, which would disable ServerQuery altogether." Type="Variable" Display="advanced-hide" Required="false" Mask="false">raw</Config>
  <Config Name="TS3SERVER_QUERY_TIMEOUT" Target="TS3SERVER_QUERY_TIMEOUT" Default="300" Mode="" Description="Number of seconds before a query connection is disconnected because of inactivity. If value is set to be zero or negative, the timeout will be disabled. The default timeout is 300 seconds." Type="Variable" Display="advanced-hide" Required="false" Mask="false">300</Config>
  <Config Name="TS3SERVER_FILETRANSFER_PORT" Target="TS3SERVER_FILETRANSFER_PORT" Default="30033" Mode="" Description="This variable controls the default TCP filetransfer port." Type="Variable" Display="advanced-hide" Required="false" Mask="false">30033</Config>
  <Config Name="TS3SERVER_DB_CLIENTKEEPDAYS" Target="TS3SERVER_DB_CLIENTKEEPDAYS" Default="30" Mode="" Description="This variable is the amount of days that the TeamSpeak server will keep unused user identities. Users that have been added to a group will not be pruned, but guests will be." Type="Variable" Display="advanced-hide" Required="false" Mask="false">30</Config>
  <Config Name="TS3SERVER_LOG_APPEND" Target="TS3SERVER_LOG_APPEND" Default="0" Mode="" Description="If this variable is set to 1, all new log entries are written into a single file per virtual server. If this set variable is set to 0, every time the server starts/restarts a new log file is created. We suggest setting this variable to 0." Type="Variable" Display="advanced-hide" Required="false" Mask="false">0</Config>
  <Config Name="TS3SERVER_LOG_QUERY_COMMANDS" Target="TS3SERVER_LOG_QUERY_COMMANDS" Default="0" Mode="" Description="If this variable is set to 1, every query command that is sent to the server will be logged." Type="Variable" Display="advanced-hide" Required="false" Mask="false">0</Config>
  <Config Name="TS3SERVER_DB_PLUGIN" Target="TS3SERVER_DB_PLUGIN" Default="ts3db_sqlite3" Mode="" Description="This variable controls what kind of database the TeamSpeak server is using." Type="Variable" Display="advanced-hide" Required="false" Mask="false">ts3db_sqlite3</Config>
  <Config Name="TS3SERVER_DB_PLUGINPARAMETER" Target="TS3SERVER_DB_PLUGINPARAMETER" Default="/var/run/ts3server/ts3db.ini" Mode="" Description="The content of the this variable is sent as 'parameter' to the db plugin." Type="Variable" Display="advanced-hide" Required="false" Mask="false">/var/run/ts3server/ts3db.ini</Config>
  <Config Name="Teamspeak 'ini' Config Path" Target="/var/run/ts3server" Default="" Mode="rw" Description="Path where the ts3server.ini and ts3db.ini files are stored." Type="Path" Display="advanced-hide" Required="false" Mask="false"></Config>
</Container>
Quote

You can add support link to your topic in this forum

Is it oke to make a new topic in docker engine? was thinking of teamspeak-officialdocker template

Quote

and template if you are putting it on Github.

done, hope link is oke

Edited by Pepreal
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.