mirror of
https://github.com/filegator/filegator.git
synced 2025-08-14 06:54:17 +02:00
docker fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
FROM php:7-apache-buster
|
FROM php:7-apache-buster
|
||||||
|
|
||||||
ENV APACHE_DOCUMENT_ROOT /var/www/filegator/
|
ENV APACHE_DOCUMENT_ROOT=/var/www/filegator/
|
||||||
|
|
||||||
RUN apt-get update > /dev/null && \
|
RUN apt-get update > /dev/null && \
|
||||||
# Install and enable php zip extension
|
# Install and enable php zip extension
|
||||||
@@ -18,14 +18,15 @@ RUN apt-get update > /dev/null && \
|
|||||||
<VirtualHost *:80> \n\
|
<VirtualHost *:80> \n\
|
||||||
DocumentRoot /var/www/filegator/dist\n\
|
DocumentRoot /var/www/filegator/dist\n\
|
||||||
</VirtualHost>\n\
|
</VirtualHost>\n\
|
||||||
' >> /etc/apache2/sites-available/filegator.conf && \
|
' > /etc/apache2/sites-enabled/000-default.conf && \
|
||||||
# configure php
|
# configure php
|
||||||
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
|
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
|
||||||
# cleanup apt
|
# cleanup apt
|
||||||
apt-get purge -y wget unzip && \
|
apt-get purge -y wget unzip && \
|
||||||
apt-get autoclean -y && \
|
apt-get autoclean -y && \
|
||||||
rm -Rf /var/lib/apt/lists/*
|
rm -Rf /var/lib/apt/lists/* && \
|
||||||
|
service apache2 restart
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
VOLUME /var/www/filegator/repository
|
VOLUME /var/www/filegator/repository
|
||||||
|
@@ -5,7 +5,7 @@ services:
|
|||||||
image: filegator:latest
|
image: filegator:latest
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8080:80"
|
||||||
volumes:
|
volumes:
|
||||||
- repository:/var/www/filegator/repository
|
- repository:/var/www/filegator/repository
|
||||||
- private:/var/www/filegator/private
|
- private:/var/www/filegator/private
|
||||||
|
Reference in New Issue
Block a user