Ponury Typ
Active Member
Hey, I am moving my ts + sinusbot setup to docker and I am having trouble with the official image. According to docks, I should be able to set up a fixed admin password via environmental value. But for some reason, it's not working. According to docker-compose --verbose composer is passing this value but it seems like docker image doesn't care about it (i can't log in as admin with this password). My docker-compose file (v3.2):
From composer:
Container log:
Any ideas?
Code:
sinusbot:
image: sinusbot/docker
restart: always
ports:
- target: 8087
published: 20786
protocol: tcp
mode: host
container_name: Sinusbot
volumes:
- /opt/sinusbot/scripts:/opt/sinusbot/scripts
- /opt/sinusbot/data:/opt/sinusbot/data
- /opt/sinusbot/config:/sinusbot/config
- /etc/letsencrypt/live/domain:/etc/ssl/certs
- sinusbot:/opt/sinusbot
environment:
OVERRIDE_PASSWORD: 'password'
networks:
- TS-network
From composer:
Code:
compose.cli.verbose_proxy.proxy_callable: docker disconnect_container_from_network <- ('0d66d39bd012af541cc7aaf094bbeb1d3604921cf56ed66b1857e969637d3210', 'TS-network')
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.25/containers/create?name=Sinusbot HTTP/1.1" 201 90
compose.cli.verbose_proxy.proxy_callable: docker create_container -> {'Id': 'd336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe',
'Warnings': None}
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('d336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe')
compose.parallel.feed_queue: Pending: set()
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.25/containers/d336b79fd9afbda8549edfced4e864fbfb059cb405f92d17b44ea901b95175fe/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': '',
'Args': [],
'Config': {'ArgsEscaped': True,
'AttachStderr': False,
'AttachStdin': False,
'AttachStdout': False,
'Cmd': None,
'Domainname': '',
'Entrypoint': ['/opt/sinusbot/entrypoint.sh'],
'Env': ['OVERRIDE_PASSWORD=password',
Container log:
Code:
Updating youtube-dl...
ERROR: can't find the current version. Please try again later.
youtube-dl was updated
Starting SinusBot...
PID: 9
2018/12/23 13:39:42 [GENERAL/!!!!!!!] WARN !!!!!!! YOU ARE RUNNING THE BOT AS UID 0 (ROOT) WITHOUT HAVING SET ANOTHER UID. THIS IS A SERIOUS SECURITY VIOLATION !!!!!!!!
___ ___ _ _ _ _ ___ ___ ___ _____ BETA
/ __|_ _| \| | | | / __| _ )/ _ \_ _|
\__ \| || .` | |_| \__ \ _ \ (_) || |
|___/___|_|\_|\___/|___/___/\___/ |_|
Version: 0.14.3-0e747fd
(C) 2013-2018 Michael Friese. All rights reserved.
2018/12/23 13:39:42 X [MAIN] Starting up fake x-server...
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin advertising.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin alonemode.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin bookmark.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin followme.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin norecording.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin rememberChannel.js
2018/12/23 13:39:42 [GENERAL/SCRIPTS] INFO Loading ScriptPlugin welcome.js
2018/12/23 13:39:42 aa75c439 INFO Loading instances
2018/12/23 13:39:42 aa75c439 INFO Loading instance://51c290fc-61f5-4a2b-a950-ff4a47ab29be
2018/12/23 13:39:42 aa75c439 51c290fc INFO Initialization complete
2018/12/23 13:39:42 [GENERAL/FFMPEG ] INFO FFmpeg/avcodec v3741798; license: LGPL version 2.1 or later; 81 codecs
2018/12/23 13:39:42 [GENERAL/FFMPEG ] INFO FFmpeg/avformat v3742052; license: LGPL version 2.1 or later; 143 formats
2018/12/23 13:39:42 [GENERAL/YTDL ] INFO youtube-dl checking...
2018/12/23 13:39:45 [GENERAL/YTDL ] INFO youtube-dl version compatible, support enabled
2018/12/23 13:39:45 [GENERAL/!!!!!!!] NOTICE You may now configure and launch the bots from the webinterface. http://0.0.0.0:8087
2018/12/23 13:39:46 [GENERAL/RADIO ] INFO RadioStation data loaded
2018/12/23 13:39:46 [GENERAL/RADIO ] INFO Imported radio stations
Any ideas?
Last edited: