Skip to content

Commit e7c6c45

Browse files
authored
Release/v1.1 (#2)
* Refactoring compose folder * Refactoring manifest mariadb * Refactoring running docker script
1 parent 68fe6c0 commit e7c6c45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+5411
-10
lines changed

compose/config/phpfpm/php-fpm.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[global]
2+
error_log = /var/log/php-fpm/fpm-error.log
3+
daemonize = no
4+
5+
[www]
6+
user = www-data
7+
group = www-data
8+
listen = [::]:9000
9+
10+
pm = dynamic
11+
pm.max_children = 5
12+
pm.start_servers = 2
13+
pm.min_spare_servers = 1
14+
pm.max_spare_servers = 3
15+
pm.status_path = /php/fpm/status
16+
17+
clear_env = no
18+
19+
access.log = /var/log/php-fpm/access.log
20+
access.format = "%t \"%m %r%Q%q\" %s %{mili}dms %{kilo}Mkb %C%%"
21+
catch_workers_output = yes
22+
23+
php_flag[display_errors] = on
24+
php_admin_value[date.timezone] = "Asia/Jakarta"

compose/config/phpfpm/php.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[PHP]
2+
short_open_tag = off
3+
4+
[Date]
5+
date.timezone = "Asia/Jakarta"
6+
7+
;zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so

compose/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ services:
9090
phpfpm:
9191
# image: zeroc0d3/laravel-kubernetes:${LARAVEL_K8S_VERSION:-latest}
9292
build:
93-
context: .
93+
context: docker/phpfpm
9494
dockerfile: Dockerfile
9595
container_name: ${CONTAINER_PHPFPM:-devopscorner_phpfpm}
9696
restart: unless-stopped
@@ -102,7 +102,7 @@ services:
102102
- ${PHPFPM_TOOLS:-./phpfpm}:/tmp/phpfpm
103103
environment:
104104
- TZ="Asia/Jakarta"
105-
- PHP_VERSION=${PHP_VERSION:-7.4}
105+
- PHP_VERSION=${PHP_VERSION:-8.1}
106106
- APP_KEY="base64:KvkVVCKALENqUruV8z6Lf85poviBolKzDxS+swRxxDk="
107107
- APP_ENV=local
108108
- APP_DEBUG=true

0 commit comments

Comments
 (0)