Skip to content

Commit

Permalink
php config
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed Dec 20, 2023
1 parent f0106b8 commit c0fb9e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM php:8.1-apache

# install recommended config
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

# install needed packages
RUN apt update && apt install -y \
gettext \
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
volumes:
- ./webs/:/var/www/html # path to webs repository
- ./config/apache.conf:/etc/apache2/sites-available/000-default.conf # site config
- ./config/php.ini:/usr/local/etc/php/php-local.ini
- ./config/local/:/var/www/html/app/config/local
- ./temp/:/var/www/html/temp/
- ./log/:/var/www/html/log/
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
volumes:
- ..:/var/www/html # path to webs repository
- ./apache.conf:/etc/apache2/sites-available/000-default.conf # site config
- ./php.ini:/usr/local/etc/php/php-local.ini # site config
ports:
- 8080-8084:8080-8084 # opened ports mapping, not needed with proxy
user: 1000:1000 # expects the main user with uid:pid
Expand Down
1 change: 1 addition & 0 deletions php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=256M

0 comments on commit c0fb9e5

Please sign in to comment.