Update Dockerfile and docker-compose.yml
This commit is contained in:
+2
-3
@@ -6,7 +6,7 @@ RUN docker-php-ext-install pdo pdo_mysql
|
|||||||
# Enable Apache mod_rewrite
|
# Enable Apache mod_rewrite
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
# Configure PHP settings for upload limit (matching application config 10MB limit)
|
# Configure PHP settings
|
||||||
RUN echo "upload_max_filesize = 16M" > /usr/local/etc/php/conf.d/uploads.ini \
|
RUN echo "upload_max_filesize = 16M" > /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "post_max_size = 16M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
&& echo "post_max_size = 16M" >> /usr/local/etc/php/conf.d/uploads.ini \
|
||||||
&& echo "memory_limit = 256M" >> /usr/local/etc/php/conf.d/uploads.ini
|
&& echo "memory_limit = 256M" >> /usr/local/etc/php/conf.d/uploads.ini
|
||||||
@@ -17,5 +17,4 @@ COPY . /var/www/html/
|
|||||||
# Set correct permissions
|
# Set correct permissions
|
||||||
RUN chown -R www-data:www-data /var/www/html/
|
RUN chown -R www-data:www-data /var/www/html/
|
||||||
|
|
||||||
# Expose port 80
|
EXPOSE 80
|
||||||
EXPOSE 80
|
|
||||||
+1
-1
@@ -12,7 +12,7 @@ services:
|
|||||||
- DB_USER=root
|
- DB_USER=root
|
||||||
- DB_PASS=secret123
|
- DB_PASS=secret123
|
||||||
- DB_NAME=poverty_map
|
- DB_NAME=poverty_map
|
||||||
- BASE_URL=${BASE_URL:-http://localhost}
|
- BASE_URL=${BASE_URL:-http://ygo4ck40cossgcww4ooc400w.203.24.51.230.sslip.io}
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user