1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud.git synced 2025-03-09 23:18:50 +00:00

Docker review

This commit is contained in:
atopilski 2023-07-07 21:25:53 -06:00
parent 8cbd146565
commit 6c5fc368be
4 changed files with 52 additions and 4 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
#set -e
regenerate_dbus_machine_id() {
rm -f /var/lib/dbus/machine-id
rm -f /etc/machine-id
dbus-uuidgen --ensure
}
CONTAINER_ALREADY_STARTED="CONTAINER_ALREADY_STARTED_PLACEHOLDER"
if [ ! -e $CONTAINER_ALREADY_STARTED ]; then
touch $CONTAINER_ALREADY_STARTED
regenerate_dbus_machine_id
else
echo "machine-id already was regenerated"
fi
if [ "${1#-}" != "$1" ]; then
set -- fastocloud "$@"
fi
exec "$@"

21
docker/fastocloud.conf Normal file
View file

@ -0,0 +1,21 @@
[settings]
log_path=~/fastocloud.log
log_level=INFO
host=0.0.0.0:6317
alias=0.0.0.0
hls_host=http://0.0.0.0:8000
vods_host=http://0.0.0.0:7000
cods_host=http://0.0.0.0:6000
hls_dir=~/streamer/hls
vods_dir=~/streamer/vods
cods_dir=~/streamer/cods
timeshifts_dir=~/streamer/timeshifts
feedback_dir=~/streamer/feedback
proxy_dir=~/streamer/proxy
data_dir=~/streamer/data
cods_ttl=600
pyfastostream_path=/usr/local/bin/pyfastostream
files_ttl=604800