Merge branch 'develop'
This commit is contained in:
23
Log.Dockerfile
Normal file
23
Log.Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM php:8-apache
|
||||||
|
|
||||||
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
ENV LOGVIEW_INSTALLATION_PATH=/app
|
||||||
|
ENV APACHE_DOCUMENT_ROOT="${LOGVIEW_INSTALLATION_PATH}/app"
|
||||||
|
ENV APACHE_PUBLIC_ROOT="${APACHE_DOCUMENT_ROOT}/public"
|
||||||
|
|
||||||
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||||
|
WORKDIR "${LOGVIEW_INSTALLATION_PATH}"
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -yq --no-install-recommends git zip unzip libzip-dev \
|
||||||
|
&& rm -r /var/lib/apt/lists/* \
|
||||||
|
&& git clone --branch develop http://git.provm.cl/ProVM/logview.git "${LOGVIEW_INSTALLATION_PATH}" \
|
||||||
|
&& docker-php-ext-install zip \
|
||||||
|
&& composer -d "${LOGVIEW_INSTALLATION_PATH}/app" install \
|
||||||
|
&& mkdir "${LOGVIEW_INSTALLATION_PATH}/app/cache" \
|
||||||
|
&& chmod -R 777 "${LOGVIEW_INSTALLATION_PATH}/app/cache" \
|
||||||
|
&& sed -ri -e "s!/var/www/html!${APACHE_PUBLIC_ROOT}!g" /etc/apache2/sites-available/*.conf \
|
||||||
|
&& sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
||||||
|
&& a2enmod rewrite \
|
||||||
|
&& a2enmod actions \
|
||||||
|
&& service apache2 restart
|
@ -59,5 +59,19 @@ services:
|
|||||||
container_name: incoviba_python
|
container_name: incoviba_python
|
||||||
<<: *restart
|
<<: *restart
|
||||||
|
|
||||||
|
logview:
|
||||||
|
profiles:
|
||||||
|
- log
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Log.Dockerfile
|
||||||
|
container_name: incoviba_logview
|
||||||
|
environment:
|
||||||
|
WEB_PORT: '8084'
|
||||||
|
volumes:
|
||||||
|
- "./logs:/logs"
|
||||||
|
ports:
|
||||||
|
- "8084:80"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dbdata:
|
dbdata:
|
||||||
|
Reference in New Issue
Block a user