Giter VIP home page Giter VIP logo

docker-teamspeak-ranksystem's Introduction

docker-teamspeak-ranksystem

WIP (currently more a template) Image for https://ts-n.net/ranksystem.php

usage

Start a teamspeak 3 server

docker run -d --name "Teamspeak" \
 -p 9987:9987/udp -p 30033:30033 -p 30000:10011 -p 10022:10022 \
 -e TS3SERVER_LICENSE=accept \
 --network="bridge" \
 --volume="Teamspeak:/var/ts3server/:rw" \
 --restart=unless-stopped \
 "teamspeak:latest"

Prepare a mysql container

  1. Choose mysql container name --name "Teamspeak_Ranksystem_Database"
  2. Choose a secure root password -e MYSQL_ROOT_PASSWORD="MySecurePassword"
  3. Fill in your selected details and run the following to start a database.
docker run -d \
 --name "Teamspeak_Ranksystem_Database" \
 -e MYSQL_ROOT_PASSWORD="MySecurePassword" \
 --network="bridge" \
 -v RanksystemDatabase:/var/lib/mysql \
 --restart=unless-stopped \
 mariadb:10.5.7

Start the ranksystem bot

  1. Choose ranksystem container name --name Teamspeak_Ranksystem
  2. Choose the port -p 8080:80
  3. Do you want to use the tested version? If not choose the version -e RANKSYSTEM_VERSION=1.3.12, branch/tag name allowed (-e RANKSYSTEM_VERSION=master)
  4. Fill in your selected details and run the following to start the ranksystem bot.
docker run -d \
 --name "Teamspeak_Ranksystem" \
 -p 8080:80  \
 --network="bridge" \
 --restart=unless-stopped \
 -v Teamspeak_Ranksystem \
 jusito/docker-teamspeak-ranksystem

follow ranksystem installation

  1. What is the domain or ip of your server? http://example.com
  2. Port you select? 8080
  3. Fill in your selected details and open url: http://example.com:8080/install.php
  4. Get database ip: docker inspect -f "{{.NetworkSettings.IPAddress}}" Teamspeak_Ranksystem_Database
  5. If you followed all from above choose mysql, with host address from 4., DB name ts3_ranksystem, DB user root and DB password MySecurePassword
  6. Hit install database and follow instructions like creating webinterface user. After this dont miss to connect your ts server http://example.com:8080/webinterface/ts.php

ToDo - feel free to contribute

Documentation

  • How to use with reverse proxy & https (Traefik or jwilder/nginx-proxy with companion) + ts dns + ... (ranksystem.ts.mydomain.de -> reverse proxy -> container)
  • Examples with compose.yml
  • PHP logs? config? + apache?
  • Description of logs / config files
  • Healthcheck, reachable + connection to ts3 working + x, any status information of ranksystem?
  • permissions ?
  • Debug mode over env for apache / php / ranksystem / scripts / ...
  • hostname for container, didn't worked for me

docker-teamspeak-ranksystem's People

Contributors

jusito avatar mygrexit avatar

Stargazers

 avatar

Watchers

 avatar  avatar

docker-teamspeak-ranksystem's Issues

dbconfig.php caused not a directory

Hey,

i use the Repo from kourgiantakis with the Docker-Compose.. but i have this error:

ERROR: for teamspeak_ranksystem  Cannot start service ranksystem: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/root/teamspeak/dbconfig.php\\\" to rootfs \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged\\\" at \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged/var/www/html/ranksystem/other/dbconfig.php\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for ranksystem  Cannot start service ranksystem: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/root/teamspeak/dbconfig.php\\\" to rootfs \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged\\\" at \\\"/var/lib/docker/overlay2/554b555834822b2311b740b9cef97296e2cfd2ce84445397b9611ccb2b6173f3/merged/var/www/html/ranksystem/other/dbconfig.php\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
version: '3.1'

services:
  teamspeak:
    image: teamspeak
    container_name: teamspeak_teamspeak3
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    volumes:
      - ./srv/ts3-data:/var/ts3server/
    environment:
      TS3SERVER_LICENSE: accept

    networks:
      teamspeak-network:
        aliases:
          - teamspeak.docker.local

  sinusbot:
    image: sinusbot/docker
    container_name: teamspeak_sinusbot
    restart: always
    ports:
      - 8087:8087
    volumes:
      - ./srv/sinusbot/scripts:/opt/sinusbot/scripts
      - ./srv/sinusbot/data:/opt/sinusbot/data
    environment:
      UID: 1002
      GID: 1002
    networks:
      teamspeak-network:

  mariadb:
    image: bitnami/mariadb:10.3
    container_name: teamspeak_ranksystem-database
    restart: always
    ports:
      - 3306:3306
    volumes:
      - ./srv/mariadb_ranksystem:/bitnami/mariadb
    environment:
      - MARIADB_ROOT_PASSWORD=XGapXdm7tyWuIo
      - MYSQL_DATABASE=RanksystemDatabase
    networks:
      teamspeak-network:
        aliases:
          - ranksystemdb.docker.local

  ranksystem:
    image: kourgiantakis/docker-teamspeak-ranksystem
    container_name: teamspeak_ranksystem
    restart: always
    ports:
      - 8088:80
    volumes:
      - ./dbconfig.php:/var/www/html/ranksystem/other/dbconfig.php
    depends_on:
      - mariadb
    networks:
      teamspeak-network:

networks:
    teamspeak-network:
        driver: bridge

so we can fix this ?? The Mounting Volume is Empty

Thanks !

Permission problem

@jusito thank you for making this docker image, unfortunately I had this problem:

image

after this steps:

docker run -d --network="bridge" --name "RanksystemDatabase" -v RanksystemDatabase:/var/lib/mysql -e MYSQL_ROOT_PASSWORD="MyChangedSecurePassword" mariadb:10.3
docker run -d -p 80:80 --network="bridge" --name "Teamspeak_Ranksystem" jusito/docker-teamspeak-ranksystem:develop
Open http://myWebsite.com/ranksystem/install.php and going throw all steps successfully.

Thank you for helping
Bastian and Lars

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.