Skip to content

Commit

Permalink
Merge pull request #31 from droidsolutions/master
Browse files Browse the repository at this point in the history
fix: add sessions volume to survice restarts
  • Loading branch information
marcelfolaron authored Feb 9, 2021
2 parents f28feb6 + ed7870a commit 0871b04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.2-fpm-alpine
FROM docker.io/library/php:7.2-fpm-alpine

#Change version to trigger build
ARG LEAN_VERSION=2.1.7
Expand Down Expand Up @@ -40,6 +40,9 @@ RUN sed -i '/LoadModule rewrite_module/s/^#//g' /etc/apache2/httpd.conf && \
sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /etc/apache2/httpd.conf && \
sed -i '$iLoadModule proxy_module modules/mod_proxy.so' /etc/apache2/httpd.conf

RUN mkdir -p "/sessions" && chown www-data:www-data /sessions && chmod 0777 /sessions
VOLUME [ "/sessions" ]

# Expose port 9000 and start php-fpm server
ENTRYPOINT ["/start.sh"]
EXPOSE 80
3 changes: 2 additions & 1 deletion config/custom.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
memory_limit = 1G
max_execution_time = 60
max_execution_time = 60
session.save_path = "/sessions/"

0 comments on commit 0871b04

Please sign in to comment.