mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix mysql ERROR
This commit is contained in:
parent
1ce1a78408
commit
5b2718bb54
2 changed files with 7 additions and 6 deletions
|
@ -9,7 +9,9 @@ RUN apt-get install apt-transport-https lsb-release logrotate git curl vim net-t
|
|||
# Install all the rest
|
||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get install sshpass nano net-tools curl apache2 php7.4 libapache2-mod-php7.4 php7.4-mysql php7.4-curl php7.4-gd php7.4-intl php7.4-xml apache2 mysql-server mysql-client ffmpeg git libimage-exiftool-perl libapache2-mod-xsendfile python build-essential make libpcre3 libpcre3-dev libssl-dev unzip htop python3-pip -y
|
||||
|
||||
RUN cd /var/www/html && git clone https://github.com/WWBN/AVideo.git && cd /var/www/html && git clone https://github.com/WWBN/AVideo-Encoder.git && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl && chown www-data:www-data /var/www/html/AVideo/plugin && chmod 755 /var/www/html/AVideo/plugin && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl && a2enmod rewrite && chown www-data:www-data /var/www/html/AVideo/plugin && chmod 755 /var/www/html/AVideo/plugin && cd /var/www/html/AVideo/plugin/User_Location/install && unzip install.zip && pip3 install youtube-dl && pip3 install --upgrade youtube-dl && a2enmod expires && a2enmod headers && chmod 777 /var/www/html/AVideo/objects/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/ && mkdir /var/www/tmp && chmod 777 /var/www/tmp && mysql -u root -e "USE mysql;CREATE USER 'youphptube'@'localhost' IDENTIFIED BY 'youphptube';GRANT ALL PRIVILEGES ON *.* TO 'youphptube'@'localhost'; FLUSH PRIVILEGES; "
|
||||
RUN cd /var/www/html && git clone https://github.com/WWBN/AVideo.git && cd /var/www/html && git clone https://github.com/WWBN/AVideo-Encoder.git && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl && chown www-data:www-data /var/www/html/AVideo/plugin && chmod 755 /var/www/html/AVideo/plugin && curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && chmod a+rx /usr/local/bin/youtube-dl && a2enmod rewrite && chown www-data:www-data /var/www/html/AVideo/plugin && chmod 755 /var/www/html/AVideo/plugin && cd /var/www/html/AVideo/plugin/User_Location/install && unzip install.zip && pip3 install youtube-dl && pip3 install --upgrade youtube-dl && a2enmod expires && a2enmod headers && chmod 777 /var/www/html/AVideo/objects/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/ && mkdir /var/www/tmp && chmod 777 /var/www/tmp
|
||||
|
||||
RUN mysql -u root -e "USE mysql;CREATE USER 'youphptube'@'localhost' IDENTIFIED BY 'youphptube';GRANT ALL PRIVILEGES ON *.* TO 'youphptube'@'localhost'; FLUSH PRIVILEGES; "
|
||||
|
||||
RUN mkdir ~/build && cd ~/build && git clone https://github.com/arut/nginx-rtmp-module.git && git clone https://github.com/nginx/nginx.git && cd nginx && ./auto/configure --with-http_ssl_module --with-http_stub_status_module --add-module=../nginx-rtmp-module --with-cc-opt="-Wimplicit-fallthrough=0" && make && make install && cd /usr/local/nginx/html && wget https://raw.githubusercontent.com/WWBN/AVideo/master/plugin/Live/install/stat.xsl && apt install python3-pip -y && pip3 install glances && apt install certbot python3-certbot-apache software-properties-common -y \
|
||||
|
||||
|
@ -19,8 +21,7 @@ RUN mkdir ~/build && cd ~/build && git clone https://github.com/arut/nginx-rtmp-
|
|||
# Set localtime to UTC
|
||||
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime
|
||||
|
||||
RUN a2enmod rewrite headers expires ssl http2 xsendfile \
|
||||
&& service apache2 restart
|
||||
RUN a2enmod rewrite headers expires ssl http2 xsendfile && service apache2 restart
|
||||
|
||||
# Set new default virtualhost
|
||||
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
||||
|
|
|
@ -9,9 +9,9 @@ services:
|
|||
ports:
|
||||
- 3306
|
||||
environment:
|
||||
#- MYSQL_USER=root
|
||||
#- MYSQL_PASSWORD=root
|
||||
#- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_USER=youphptube
|
||||
- MYSQL_PASSWORD=youphptube
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=avideo
|
||||
- TZ=UTC
|
||||
expose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue