• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

TS3 and SinusBot with docker-compose

Has anyone set up a working docker-compose for sinusbot?

The teamspeak and the web interface run without problems, but I can't connect the bot to my ts.

The log throws no error, it even shows a working connection. No bot to be seen on the server. I used the container name, domain and IP as hostname.
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Can you show us your docker-compose.yml?
 
Code:
version: '2'

services:
    teamspeak:
        image:  mbentley/teamspeak:latest
        restart: always
        volumes:
          - /docker/teamspeak3/teamspeak:/data
        ports:
          - "9987:9987/udp"
          - "30033:30033"
          - "10011:10011"
          - "41144:41144"
        environment:
          - TS3SERVER_LICENSE=accept
        networks:
          - back

    sinusbot:
        image: quay.io/galexrt/sinusbot:latest
        restart: always
        volumes:
          - /docker/teamspeak3/sinusbot/data:/sinusbot/data
          - /docker/teamspeak3/sinusbot/scripts:/sinusbot/scripts
          - /docker/teamspeak3/sinusbot/config:/sinusbot/config
          - /docker/nginx-proxy/certs:/etc/ssl/certs
        ports:
          - "8087:8087"
        networks:         
          - back

networks:
    back:
        driver: bridge
 
@mxschmitt

Ich habe es jetzt mit der offiziellen Version gemacht, verbinden kann ich mich noch immer nicht.

docker-compose.yml:
YAML:
version: '2'

services:
    teamspeak:
        image:  mbentley/teamspeak:latest
        volumes:
          - /docker/teamspeak3/teamspeak:/data
        ports:
          - "9987:9987/udp"
          - "30033:30033"
          - "10011:10011"
          - "41144:41144"
        environment:
          - TS3SERVER_LICENSE=accept
        networks:
          - back
        restart: always
    sinusbot:
        image: sinusbot/docker
        restart: always
        ports:
          - 8087:8087
        volumes:
          - ./sinusbot/scripts:/opt/sinusbot/scripts
          - ./sinusbot/data:/opt/sinusbot/data
          - /docker/nginx-proxy/certs:/etc/ssl/certs
          - ./sinusbot/config.ini:/opt/sinusbot/config.ini:ro
        networks:
          - back

networks:
    back:
        driver: bridge

Startlog:

Bash:
sinusbot_1   | Version: 0.14.3-0e747fd
sinusbot_1   | (C) 2013-2018 Michael Friese. All rights reserved.
sinusbot_1   |
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin advertising.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin alonemode.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin bookmark.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin followme.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin norecording.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin rememberChannel.js
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/SCRIPTS] INFO   Loading ScriptPlugin welcome.js
sinusbot_1   | 2018/10/31 13:46:24 a38269c8          INFO   Loading instances
sinusbot_1   | 2018/10/31 13:46:24 a38269c8          INFO   Loading instance://870f4963-5e40-4822-9714-2fa39ee60f50
sinusbot_1   | 2018/10/31 13:46:24 a38269c8 870f4963 INFO   Initialization complete
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/FFMPEG ] INFO   FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/FFMPEG ] INFO   FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
sinusbot_1   | 2018/10/31 13:46:24 [GENERAL/YTDL   ] INFO   youtube-dl checking...
sinusbot_1   | 2018/10/31 13:46:25 [GENERAL/YTDL   ] INFO   youtube-dl version compatible, support enabled
sinusbot_1   | 2018/10/31 13:46:25 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
sinusbot_1   | 2018/10/31 13:46:25 [GENERAL/RADIO  ] INFO   Could not find RadioStation-Data (or outdated), updating...
sinusbot_1   | 2018/10/31 13:46:26 [GENERAL/RADIO  ] ERROR  Could not start request; E01502

config.ini:

INI:
ListenPort = 8087
ListenHost = "0.0.0.0"
TS3Path = "/opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64"
YoutubeDLPath = "/usr/local/bin/youtube-dl"
LocalPlayback = false
EnableLocalFS = false
MaxBulkOperations = 300
LogLevel = 10
EnableProfiler = false
EnableDebugConsole = false
AllowStreamPush = false
UploadLimit = 83886080
RunAsUser = 0
RunAsGroup = 0
InstanceActionLimit = 6
UseSSL = true
SSLKeyFile = "/etc/ssl/certs/bobjunior.at.key"
SSLCertFile = "/etc/ssl/certs/bobjunior.at.crt"
Hostname = "bobjunior.at"
HostnameMask = ""
SampleInterval = 60
StartVNC = false
EnableWebStream = false
LogFile = ""
LicenseKey = "nHDRi9SQYHUoqKqdDTyChCve42XaZ+ph5yqkN46B0zA="
IsProxied = true
DenyStreamURLs = []
Pragma = 0
UserAgent = ""

Konfiguration:

Unbenannt.PNG

Log beim Starten des Bots:

Bash:
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Prespawn.
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  About to run.
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not create Chat-Tabletable Chat already exists
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not create WhisperReceive-Tabletable WhisperReceive already exists
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not create Notifications-Tabletable Notifications already exists
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Applicationno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Application-Tableno such table: Application
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from FileTransferno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into FileTransfer-Tableno such table: FileTransfer
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Profilesno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Profiles-Tableno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Profilesno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Profiles-Tableno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Profilesno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Profiles-Tableno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Profilesno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Profiles-Tableno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not delete from Profilesno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 WARN   Could not insert into Profiles-Tableno such table: Profiles
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from Newsno such table: News
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into News-Tableno such table: News
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from Newsno such table: News
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into News-Tableno such table: News
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not delete from Newsno such table: News
sinusbot_1   | 2018/10/31 13:39:15 a38269c8 870f4963 DEBUG  Could not insert into News-Tableno such table: News
sinusbot_1   | 2018/10/31 13:39:16 a38269c8 870f4963 INFO   Starting instance ts3server://teamspeak3_teamspeak_1?port=9987&nickname=SinusBot&password=&channel=&channelpassword=
sinusbot_1   | 2018/10/31 13:39:16 X [MAIN] New connection
sinusbot_1   | 2018/10/31 13:39:17 a38269c8 870f4963 DEBUG  Storing configuration.

Log beim Beenden:

Bash:
sinusbot_1   | 2018/10/31 13:41:08 a38269c8 870f4963 WARN   Could not request shutdown. Please make sure that the plugin is installed correctly; HTTP returned an error: Timeout; Code: 500; Message: Timeout
sinusbot_1   | 2018/10/31 13:41:09 a38269c8 870f4963 INFO   KILL [admin] OK
sinusbot_1   | 2018/10/31 13:41:09 a38269c8 870f4963 DEBUG  TS>QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
sinusbot_1   | 2018/10/31 13:41:09 a38269c8 870f4963 DEBUG  TS>QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
sinusbot_1   | 2018/10/31 13:41:09 a38269c8 870f4963 INFO   TSClient quit.
sinusbot_1   | 2018/10/31 13:41:09 a38269c8 870f4963 DEBUG  Closed.
sinusbot_1   | 2018/10/31 13:41:17 a38269c8 870f4963 DEBUG  Storing configuration.
sinusbot_1   | echo: http: TLS handshake error from 127.0.0.1:50330: tls: first record does not look like a TLS handshake
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Hab mal selbst nachgebaut, auch mit offiziellen teamspeak docker image. Das hier funktioniert:
Code:
version: '2'
services:
  teamspeak:
    image: teamspeak
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    environment:
      TS3SERVER_LICENSE: accept
    networks:
      mynetwork:
        aliases:
          - teamspeak.docker.local

  sinusbot:
    image: sinusbot/docker
    restart: always
    ports:
      - 8087:8087
    volumes:
      - ./scripts:/opt/sinusbot/scripts
      - ./data:/opt/sinusbot/data
    networks:
     - mynetwork
networks:
    mynetwork:
        driver: bridge
Liegt dran, dass der TeamSpeak³ Client eine vollen hostname + Domain braucht, sodass er das auflösen kann. In meinem Fall siehe oben "teamspeak.docker.local". Das funktioniert auch, gerade getestet.
 

lennard0711

Member
Ich verwende diese docker-compose.yml und verbinde mich im webpanel per localhost.
YAML:
version: '3.1'

volumes:
  teamspeak:

services:
  app:
    image: teamspeak
    restart: always
    ports:
      - 9987:9987/udp
      - 10011:10011
      - 30033:30033
    volumes:
      - teamspeak:/var/ts3server/
    environment:
      TS3SERVER_LICENSE: accept
  bot:
    image: sinusbot/docker
    ports:
      - 80:8087
    volumes:
      - ./bot1/scripts:/opt/sinusbot/scripts
      - ./bot1/data:/opt/sinusbot/data
 

Eomer

Donor
is awesome!
Ich hänge mich hier mal ran. Per Docker-Compose starter Sinusbot allerdings per Root und auch die Doku bei Github sagt nicht das man es nicht darf (anders als beim normalen Container). Ist das so gewollt?
 

TwentyFour

BinusSot Junkie
V.I.P.
Contributor
Insider
Ich hänge mich hier mal ran. Per Docker-Compose starter Sinusbot allerdings per Root und auch die Doku bei Github sagt nicht das man es nicht darf (anders als beim normalen Container). Ist das so gewollt?
Gewollt oder nicht... es ist halt einfach nicht empfehlenswert, einen Prozess mit root-Rechten laufen zu lassen, die er nicht braucht. Deswegen überall die Empfehlung es nicht zu tun, aber rein technisch gesehen ist es genauso lauffähig.
 

Eomer

Donor
is awesome!
Es hatte sich im Discord geklärt. Das hinzufügen von:

environment:
UID: 1002
GID: 1002

Zur Docker compose hat es gelöst.
 
Top