docker updates, default port is now 8080

This commit is contained in:
Milos Stojanovic
2023-01-25 13:40:32 +01:00
parent d0936b92c1
commit 37d25ef881
2 changed files with 7 additions and 4 deletions

View File

@@ -46,11 +46,14 @@ RUN chmod -R g+w private/
RUN chmod -R g+w repository/
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
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
ENV APACHE_PORT=8080
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
EXPOSE 80
EXPOSE ${APACHE_PORT}
VOLUME /var/www/filegator/repository
VOLUME /var/www/filegator/private

View File

@@ -5,7 +5,7 @@ services:
image: filegator:latest
restart: always
ports:
- "8080:80"
- "8080:8080"
volumes:
- repository:/var/www/filegator/repository
- private:/var/www/filegator/private