Update Dockerfile and docker-compose.yml

This commit is contained in:
fananazril
2026-06-12 15:27:16 +07:00
parent e9814c4f5e
commit 7dd89a62bb
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -6,7 +6,7 @@ RUN docker-php-ext-install pdo pdo_mysql
# Enable Apache mod_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 \
&& 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
@@ -17,5 +17,4 @@ COPY . /var/www/html/
# Set correct permissions
RUN chown -R www-data:www-data /var/www/html/
# Expose port 80
EXPOSE 80
+1 -1
View File
@@ -12,7 +12,7 @@ services:
- DB_USER=root
- DB_PASS=secret123
- DB_NAME=poverty_map
- BASE_URL=${BASE_URL:-http://localhost}
- BASE_URL=${BASE_URL:-http://ygo4ck40cossgcww4ooc400w.203.24.51.230.sslip.io}
ports:
- "80"
depends_on: