File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ FROM php:7.3.8-fpm-alpine3.10
3
3
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
4
4
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
5
5
PHP_OPCACHE_MEMORY_CONSUMPTION="192" \
6
- PHP_OPCACHE_MAX_WASTED_PERCENTAGE="10"
6
+ PHP_OPCACHE_MAX_WASTED_PERCENTAGE="10" \
7
+ PHP_MEMORY_LIMIT="512M"
7
8
8
9
RUN apk info \
9
10
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ A highly opinionated docker image which aims to be perfectly suited to run our L
18
18
19
19
Create a ` Dockerfile ` with the following contents (and adjust version tag):
20
20
21
- ```
21
+ ``` dockerfile
22
22
FROM sourceboat/docker-laravel:x.x.x
23
23
24
24
# install yarn dependencies
@@ -40,14 +40,15 @@ RUN yarn production
40
40
41
41
Create a ` docker-compose.yml ` with the following contents:
42
42
43
- ```
43
+ ``` yml
44
44
version : ' 3.7'
45
45
services :
46
46
app :
47
47
build : .
48
48
restart : unless-stopped
49
49
environment :
50
50
- PHP_OPCACHE_VALIDATE_TIMESTAMPS=1
51
+ - PHP_MEMORY_LIMIT=1G
51
52
volumes :
52
53
- ./:/opt/app:cached
53
54
ports :
Original file line number Diff line number Diff line change 6
6
7
7
max_execution_time = 60
8
8
max_input_time = 60
9
- memory_limit = 512M
9
+ memory_limit = ${PHP_MEMORY_LIMIT}
10
10
11
11
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
12
; Error handling and logging ;
You can’t perform that action at this time.
0 commit comments