File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
7
7
ARG PHP_VERSION=7.4
8
- ARG NGINX_VERSION=1.17
8
+ ARG NGINX_VERSION=1.19
9
9
10
10
# "php" stage
11
11
FROM php:${PHP_VERSION}-fpm-alpine AS symfony_php
@@ -20,7 +20,7 @@ RUN apk add --no-cache \
20
20
jq \
21
21
;
22
22
23
- ARG APCU_VERSION=5.1.18
23
+ ARG APCU_VERSION=5.1.19
24
24
RUN set -eux; \
25
25
apk add --no-cache --virtual .build-deps \
26
26
$PHPIZE_DEPS \
@@ -56,7 +56,7 @@ RUN set -eux; \
56
56
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
57
57
58
58
RUN ln -s $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini
59
- COPY docker/php/conf.d/symfony.ini $PHP_INI_DIR/conf.d/symfony.ini
59
+ COPY docker/php/conf.d/symfony.prod. ini $PHP_INI_DIR/conf.d/symfony.ini
60
60
61
61
RUN set -eux; \
62
62
{ \
Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ services:
17
17
volumes :
18
18
# Comment out the next line in production
19
19
- ./:/srv/app:rw,cached
20
+ - ./docker/php/conf.d/symfony.dev.ini:/usr/local/etc/php/conf.d/symfony.ini
20
21
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
21
- - /srv/app/var/
22
- - /srv/app/var/cache/
23
- - /srv/app/var/logs/
24
- - /srv/app/var/sessions/
22
+ # - ./api/var:/srv/app/var:rw
25
23
environment :
26
24
- SYMFONY_VERSION
27
25
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ apc.enable_cli = 1
2
+ date.timezone = UTC
3
+ session.auto_start = Off
4
+ short_open_tag = Off
5
+
6
+ # https://symfony.com/doc/current/performance.html
7
+ opcache.interned_strings_buffer = 16
8
+ opcache.max_accelerated_files = 20000
9
+ opcache.memory_consumption = 256
10
+ opcache.validate_timestamps = 0
11
+ realpath_cache_size = 4096K
12
+ realpath_cache_ttl = 600
13
+ opcache.preload_user =www-data
14
+ opcache.preload =/srv/app/var/cache/prod/App_KernelProdContainer.preload.php
You can’t perform that action at this time.
0 commit comments