File tree Expand file tree Collapse file tree 10 files changed +40
-1961
lines changed Expand file tree Collapse file tree 10 files changed +40
-1961
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ services:
26
26
- " 8080:8080"
27
27
volumes :
28
28
- /var/run/docker.sock:/var/run/docker.sock:ro
29
- restart : unless-stopped
29
+ restart : ${RESTART_POLICY:-on-failure}
30
30
networks :
31
31
- sfdemo
32
32
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ services:
17
17
- ../../project:/var/www/project/demo
18
18
- ../nginx/nginx.conf:/etc/nginx/nginx.conf
19
19
- ../nginx/sites:/etc/nginx/sites-enabled
20
- restart : unless-stopped
20
+ restart : ${RESTART_POLICY:-on-failure}
21
21
depends_on :
22
22
- php
23
23
networks :
@@ -28,7 +28,7 @@ services:
28
28
db :
29
29
image : mysql:8
30
30
command : mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
31
- restart : unless-stopped
31
+ restart : ${RESTART_POLICY:-on-failure}
32
32
environment :
33
33
MYSQL_ROOT_PASSWORD : ${DB_PASS}
34
34
MYSQL_DATABASE : ${DB_NAME}
@@ -42,7 +42,7 @@ services:
42
42
43
43
php :
44
44
build : ../php
45
- restart : unless-stopped
45
+ restart : ${RESTART_POLICY:-on-failure}
46
46
environment :
47
47
MYSQL_HOST : ${DB_HOST}
48
48
MYSQL_USER : ${DB_USER}
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ DB_NAME=demo
14
14
DB_USER = local
15
15
DB_PASS = local
16
16
TIMEZONE = Europe/Paris
17
+
18
+ # For active docker container's on server boot
19
+ # RESTART_POLICY=unless-stopped
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ services:
8
8
ports :
9
9
- " 1080"
10
10
- " 1025"
11
+ restart : ${RESTART_POLICY:-on-failure}
11
12
networks :
12
13
sfdemo :
13
14
aliases :
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ services:
20
20
- db
21
21
links :
22
22
- db
23
+ restart : ${RESTART_POLICY:-on-failure}
23
24
networks :
24
25
sfdemo :
25
26
aliases :
Original file line number Diff line number Diff line change
1
+ xdebug.mode =debug,develop
2
+ xdebug.client_host =host.docker.internal
3
+ xdebug.client_port =9000
Original file line number Diff line number Diff line change
1
+ date.timezone = " Europe/Paris"
2
+ memory_limit = 512M
3
+ max_execution_time = 30
4
+ upload_max_filesize = 512M
5
+ post_max_size = 512M
6
+ opcache.enable = On
7
+ opcache.validate_timestamps = Off
8
+ opcache.memory_consumption = 32
9
+ expose_php = Off
10
+ log_errors = On
11
+ log_errors_max_len = 0
12
+ max_input_vars = 10000
13
+
14
+ ; Log on file or Docker
15
+ ; error_log = /var/log/php-error.log
16
+ error_log = /dev/stderr
17
+
18
+ ; Development
19
+ display_errors = On
20
+ error_reporting = E_ALL
21
+
22
+ ; Production
23
+ ; display_errors = Off
24
+ ; error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Original file line number Diff line number Diff line change 1
- FROM php:8.2 -fpm
1
+ FROM php:8.4 -fpm
2
2
MAINTAINER J.GAUTHI <github.com/jgauthi>
3
3
4
4
# Some libs
@@ -24,7 +24,8 @@ RUN chown -R www-data:www-data /var/www
24
24
25
25
# PHP Conf
26
26
COPY php.ini /usr/local/etc/php/php.ini
27
- COPY php-fpm-pool.conf /usr/local/etc/php/php-fpm.conf
27
+ COPY 98-xdebug.ini $PHP_INI_DIR/conf.d/98-xdebug.ini
28
+ COPY 99-custom-php-conf.ini $PHP_INI_DIR/conf.d/99-custom-php-conf.ini
28
29
29
30
# Purge
30
31
RUN rm -rf /var/lib/apt/lists/* \
You can’t perform that action at this time.
0 commit comments