fuck apache2, attepmt to configure nextcloud php
This commit is contained in:
parent
8079905530
commit
b1c83b2941
@ -44,11 +44,11 @@ RUN wget https://packages.sury.org/php/apt.gpg \
|
||||
&& apt update
|
||||
|
||||
#Installing and configure PHP
|
||||
RUN apt install php${PHPVERSION} -y --no-install-recommends \
|
||||
RUN apt install php${PHPVERSION}-fpm php${PHPVERSION} -y --no-install-recommends \
|
||||
&& mkdir /run/php/
|
||||
|
||||
#Installing Required PHP Modules
|
||||
RUN bash -c 'apt install -y php${PHPVERSION}-{fpm,cli,bcmath,bz2,intl,common,ctype,curl,dom,gd,mbstring,posix,simplexml,xmlreader,xmlwriter,zip} --no-install-recommends'
|
||||
RUN bash -c 'apt install -y php${PHPVERSION}-{cli,bcmath,bz2,intl,common,ctype,curl,dom,gd,mbstring,posix,simplexml,xmlreader,xmlwriter,zip} --no-install-recommends'
|
||||
|
||||
#Installing database connector PHP Modules
|
||||
RUN bash -c 'apt install -y php${PHPVERSION}-mysql --no-install-recommends'
|
||||
@ -73,8 +73,9 @@ RUN rm -rv /var/www/html/index.nginx-debian.html \
|
||||
/etc/nginx/
|
||||
|
||||
#Autoconfig defaults
|
||||
RUN mkdir -pv default_configs/etc/
|
||||
RUN mkdir -pv default_configs/etc/ default_configs/var/
|
||||
COPY buildfiles/etc/ default_configs/etc/
|
||||
COPY buildfiles/var/ default_configs/var/
|
||||
|
||||
#autostart files
|
||||
COPY buildfiles/auto_config.sh .
|
||||
|
@ -11,6 +11,9 @@ touch init/init
|
||||
#Copy nextcloud to web root
|
||||
cp -rv nextcloud/* /var/www/html/
|
||||
|
||||
# Copy nextcloud config.php
|
||||
cp -rv default_configs/var/var/www/html/config /var/www/html/config
|
||||
|
||||
#Create log dirs
|
||||
mkdir -pv /root/logs/nginx
|
||||
mkdir -pv /root/logs/php-fpm
|
||||
|
2168
buildfiles/var/www/html/config/config.php
Normal file
2168
buildfiles/var/www/html/config/config.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,7 @@ services:
|
||||
- ./configs/init:/root/init
|
||||
- ./configs/etc/nginx:/etc/nginx
|
||||
- ./configs/etc/php:/etc/php
|
||||
- ./var/www/html/config:var/www/html/config
|
||||
- ./nextcloud:/var/www/html
|
||||
- ./logs:/root/logs
|
||||
ports:
|
||||
|
Loading…
x
Reference in New Issue
Block a user