fuck apache2, attepmt to configure nextcloud php

This commit is contained in:
Shihaam Abdul Rahman 2022-10-08 03:04:01 +05:00
parent 8079905530
commit b1c83b2941
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
4 changed files with 2176 additions and 3 deletions

View File

@ -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 .

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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: