Skip to content

Commit

Permalink
moving php.ini variables for phpmyadmin to env-example
Browse files Browse the repository at this point in the history
  • Loading branch information
trilogo-lordee committed Feb 10, 2021
1 parent 0e2386e commit 99345ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,9 @@ services:
- MYSQL_USER=${PMA_USER}
- MYSQL_PASSWORD=${PMA_PASSWORD}
- MYSQL_ROOT_PASSWORD=${PMA_ROOT_PASSWORD}
- MAX_EXECUTION_TIME=${PMA_MAX_EXECUTION_TIME}
- MEMORY_LIMIT=${PMA_MEMORY_LIMIT}
- UPLOAD_LIMIT=${PMA_UPLOAD_LIMIT}
ports:
- "${PMA_PORT}:80"
depends_on:
Expand Down
3 changes: 3 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ PMA_USER=default
PMA_PASSWORD=secret
PMA_ROOT_PASSWORD=secret
PMA_PORT=8081
PMA_MAX_EXECUTION_TIME=600
PMA_MEMORY_LIMIT=256M
PMA_UPLOAD_LIMIT=2G

### MAILDEV ###############################################

Expand Down
5 changes: 0 additions & 5 deletions phpmyadmin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@ LABEL maintainer="Bo-Yi Wu <[email protected]>"
# Add volume for sessions to allow session persistence
VOLUME /sessions

RUN echo '' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
&& echo '[PHP]' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
&& echo 'post_max_size = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \
&& echo 'upload_max_filesize = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini

# We expose phpMyAdmin on port 80
EXPOSE 80

0 comments on commit 99345ce

Please sign in to comment.