mirror of
https://github.com/filegator/filegator.git
synced 2025-08-18 18:11:27 +02:00
docker updates, default port is now 8080
This commit is contained in:
@@ -46,11 +46,14 @@ RUN chmod -R g+w private/
|
|||||||
RUN chmod -R g+w repository/
|
RUN chmod -R g+w repository/
|
||||||
|
|
||||||
ENV APACHE_DOCUMENT_ROOT=/var/www/filegator/dist/
|
ENV APACHE_DOCUMENT_ROOT=/var/www/filegator/dist/
|
||||||
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
|
ENV APACHE_PORT=8080
|
||||||
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
|
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/000-default.conf
|
||||||
|
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/docker-php.conf
|
||||||
|
RUN sed -ri -e 's!80!${APACHE_PORT}!g' /etc/apache2/ports.conf
|
||||||
|
RUN sed -ri -e 's!80!${APACHE_PORT}!g' /etc/apache2/sites-available/000-default.conf
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE ${APACHE_PORT}
|
||||||
|
|
||||||
VOLUME /var/www/filegator/repository
|
VOLUME /var/www/filegator/repository
|
||||||
VOLUME /var/www/filegator/private
|
VOLUME /var/www/filegator/private
|
||||||
|
@@ -5,7 +5,7 @@ services:
|
|||||||
image: filegator:latest
|
image: filegator:latest
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:8080"
|
||||||
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