File tree Expand file tree Collapse file tree 4 files changed +21
-31
lines changed Expand file tree Collapse file tree 4 files changed +21
-31
lines changed Original file line number Diff line number Diff line change 44APP_NAME = docker_nginx_php_mysql
55APP_WORKSPACE = default
66APP_DIR = app
7- APP_PUBLIC_DIR = $( APP_DIR ) /public
7+ APP_PUBLIC_DIR = app /public
88
99# Common settings
1010NGINX_HOST = localhost
@@ -24,11 +24,7 @@ NGINX_SSL_KEY_SIZE=4096
2424# PHP configuration
2525PHP_VERSION = 8.3
2626PHP_TARGET = dev
27- PHP_INI = php.prod.ini
28-
29- PHP_DISPLAY_ERRORS = 1
30- PHP_MEMORY_LIMIT = 256M
31- XDEBUG_ENABLED = 1
27+ PHP_INI = php.dev.ini
3228
3329# MySQL configuration
3430MYSQL_VERSION = 9.2
@@ -41,18 +37,20 @@ MYSQL_USER=dev
4137MYSQL_PASSWORD = dev
4238
4339# PHPMyAdmin configuration
44- PHPMYADMIN_PORT = 8080
4540PHPMYADMIN_PROFILE = dev
41+ PHPMYADMIN_PORT = 8080
4642PHPMYADMIN_USER = root
4743PHPMYADMIN_PASSWORD = root
4844PHPMYADMIN_UPLOAD_LIMIT = 100M
4945
5046# MailHog configuration
47+ MAILHOG_PROFILE = dev
5148MAILHOG_SMTP_PORT = 1025
5249MAILHOG_UI_PORT = 8025
5350MAILHOG_STORAGE = memory
5451MAILHOG_HOSTNAME = mailhog
5552MAILHOG_CORS_ORIGIN = *
5653
5754# API documentation configuration
55+ APIDOCS_PROFILE = dev
5856APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change 44APP_NAME = docker_nginx_php_mysql
55APP_WORKSPACE = default
66APP_DIR = app
7- APP_PUBLIC_DIR = $( APP_DIR ) /public
7+ APP_PUBLIC_DIR = app /public
88
99# Common settings
1010NGINX_HOST = localhost
@@ -26,10 +26,6 @@ PHP_VERSION=8.3
2626PHP_TARGET = dev
2727PHP_INI = php.dev.ini
2828
29- PHP_DISPLAY_ERRORS = 1
30- PHP_MEMORY_LIMIT = 256M
31- XDEBUG_ENABLED = 1
32-
3329# MySQL configuration
3430MYSQL_VERSION = 9.2
3531MYSQL_HOST = mysql
@@ -41,18 +37,20 @@ MYSQL_USER=dev
4137MYSQL_PASSWORD = dev
4238
4339# PHPMyAdmin configuration
44- PHPMYADMIN_PORT = 8080
4540PHPMYADMIN_PROFILE = dev
41+ PHPMYADMIN_PORT = 8080
4642PHPMYADMIN_USER = root
4743PHPMYADMIN_PASSWORD = root
4844PHPMYADMIN_UPLOAD_LIMIT = 100M
4945
5046# MailHog configuration
47+ MAILHOG_PROFILE = dev
5148MAILHOG_SMTP_PORT = 1025
5249MAILHOG_UI_PORT = 8025
5350MAILHOG_STORAGE = memory
5451MAILHOG_HOSTNAME = mailhog
5552MAILHOG_CORS_ORIGIN = *
5653
5754# API documentation configuration
55+ APIDOCS_PROFILE = dev
5856APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change 44APP_NAME = docker_nginx_php_mysql
55APP_WORKSPACE = default
66APP_DIR = app
7- APP_PUBLIC_DIR = $( APP_DIR ) /public
7+ APP_PUBLIC_DIR = app /public
88
99# Common settings
1010NGINX_HOST = localhost
@@ -24,35 +24,33 @@ NGINX_SSL_KEY_SIZE=4096
2424# PHP configuration
2525PHP_VERSION = 8.3
2626PHP_TARGET = dev
27- PHP_INI = php.prod.ini
28-
29- PHP_DISPLAY_ERRORS = 1
30- PHP_MEMORY_LIMIT = 256M
31- XDEBUG_ENABLED = 1
27+ PHP_INI = php.dev.ini
3228
3329# MySQL configuration
3430MYSQL_VERSION = 9.2
3531MYSQL_HOST = mysql
3632MYSQL_PORT = 8989
37- MYSQL_DATABASE = test
38- MYSQL_ROOT_USER = root
39- MYSQL_ROOT_PASSWORD = root
40- MYSQL_USER = dev
41- MYSQL_PASSWORD = dev
33+ MYSQL_DATABASE = database_name
34+ MYSQL_ROOT_USER = app_root_user
35+ MYSQL_ROOT_PASSWORD = app_root_password
36+ MYSQL_USER = app_user
37+ MYSQL_PASSWORD = app_password
4238
4339# PHPMyAdmin configuration
40+ PHPMYADMIN_PROFILE = none
4441PHPMYADMIN_PORT = 8080
45- PHPMYADMIN_PROFILE = dev
4642PHPMYADMIN_USER = root
4743PHPMYADMIN_PASSWORD = root
4844PHPMYADMIN_UPLOAD_LIMIT = 100M
4945
5046# MailHog configuration
47+ MAILHOG_PROFILE = none
5148MAILHOG_SMTP_PORT = 1025
5249MAILHOG_UI_PORT = 8025
5350MAILHOG_STORAGE = memory
5451MAILHOG_HOSTNAME = mailhog
5552MAILHOG_CORS_ORIGIN = *
5653
5754# API documentation configuration
55+ APIDOCS_PROFILE = none
5856APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change @@ -71,10 +71,6 @@ services:
7171 volumes :
7272 - " ./etc/php/${PHP_INI:-php.dev.ini}:/usr/local/etc/php/conf.d/99-custom.ini"
7373 - " ./web:/var/www/html"
74- environment :
75- - PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-1}
76- - PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-256M}
77- - XDEBUG_ENABLED=${XDEBUG_ENABLED:-1}
7874 networks :
7975 - backend-network
8076 healthcheck :
@@ -120,7 +116,7 @@ services:
120116 networks :
121117 - backend-network
122118 profiles :
123- - ${PHPMYADMIN_PROFILE :-dev}
119+ - ${MAILHOG_PROFILE :-dev}
124120
125121 apidocs :
126122 image : nginx:alpine
@@ -131,7 +127,7 @@ services:
131127 networks :
132128 - frontend-network
133129 profiles :
134- - ${PHPMYADMIN_PROFILE :-dev}
130+ - ${APIDOCS_PROFILE :-dev}
135131
136132volumes :
137133 mysql_data :
You can’t perform that action at this time.
0 commit comments