HUB
Sign inSign up

eshnil2000/youphptube

By eshnil2000

•Updated over 8 years ago

Image
0

283

eshnil2000/youphptube repository overview

Youphptube Streamer First install Docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/#upgrade-docker-ce⁠ then: sudo groupadd docker sudo usermod -aG docker $USER exit shell login again, now you dont need to enter sudo with docker commands

Main change in Dockerfile from https://github.com/eshnil2000/YouPHPTube⁠:

1.Added the following to Dockerfile : to getrid of error in phptubeencoder site stuck at processing due to CORs issue RUN a2enmod headers && service apache2 restart 2.Note: Make sure MySQL username is entered as uroot but password as "passwordpassword is entered First start mysql container (first pull this container docker pull mysql) Command to run MySQL container: docker run -d --name mysql-server2 -p3306:3306 -e MYSQL_ROOT_PASSWORD=secret eshnil2000/youphpmysql --default-authentication-plugin=mysql_native_password

docker create network youtube

Then start this container, the Youphptube Streamer (download git repo and build the image with name youphp: docker run -d -p 80:8000 --name youphp --network youtube --link mysql-server2:mysql eshnil2000/youphptube

Finally start the encoder container (download and build this image) : docker run -d -p 8080:8000 --name youphpencoder --network youtube --link mysql-server2:mysql eshnil2000/youphpencoder

In the install page of youphptube, For database host, use IP address instead of localhost.

After logging in as admin in youphptube, change these settings:

Add link to the encoder site Allow logged in users to upload video NOTE: Encoder & Streamer can be installed on different servers. When setting up streamer and encoder, make sure to enter IP address for MySQL hostname [not localhost, dont add http in front of IP address]

====PERSIST DATA====== to mount volumes, first create the folder where you want to persist data : ex: mkdir /root/data/youtube/encodervideo then make the folder writable chmod a+rwx -R /root/data/youtube/encodervideos docker run -v /root/data/youtube/encodervideos:/var/www/html/videos -d -p 8081:8000 --name youphpencoder --network youtube --link mysql-server2:mysql eshnil2000/youphphtubeencoder

do the same with other images: mkdir /root/data/youtube/videos then make the folder writable chmod a+rwx -R /root/data/youtube/videos docker run -d -v /root/data/youtube/videos:/var/www/html/videos -p 8080:8000 --name youphp --network youtube --link mysql-server2:mysql eshnil2000/youphptube

similarly for the mysql container mkdir /root/data/youtube/mysqldata chmod a+rwx -R /root/data/youtube/mysqldata docker run -d --name mysql-server2 -p3306:3306 -v /root/data/youtube/mysqldata/ -e MYSQL_ROOT_PASSWORD=hackforsac@optane eshnil2000/optanetubemysql --default-authentication-plugin=mysql_native_password

=======

Tag summary

Content type

Image

Digest

Size

423.1 MB

Last updated

over 8 years ago

docker pull eshnil2000/youphptube