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 4
4
APP_NAME = docker_nginx_php_mysql
5
5
APP_WORKSPACE = default
6
6
APP_DIR = app
7
- APP_PUBLIC_DIR = $( APP_DIR ) /public
7
+ APP_PUBLIC_DIR = app /public
8
8
9
9
# Common settings
10
10
NGINX_HOST = localhost
@@ -24,11 +24,7 @@ NGINX_SSL_KEY_SIZE=4096
24
24
# PHP configuration
25
25
PHP_VERSION = 8.3
26
26
PHP_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
32
28
33
29
# MySQL configuration
34
30
MYSQL_VERSION = 9.2
@@ -41,18 +37,20 @@ MYSQL_USER=dev
41
37
MYSQL_PASSWORD = dev
42
38
43
39
# PHPMyAdmin configuration
44
- PHPMYADMIN_PORT = 8080
45
40
PHPMYADMIN_PROFILE = dev
41
+ PHPMYADMIN_PORT = 8080
46
42
PHPMYADMIN_USER = root
47
43
PHPMYADMIN_PASSWORD = root
48
44
PHPMYADMIN_UPLOAD_LIMIT = 100M
49
45
50
46
# MailHog configuration
47
+ MAILHOG_PROFILE = dev
51
48
MAILHOG_SMTP_PORT = 1025
52
49
MAILHOG_UI_PORT = 8025
53
50
MAILHOG_STORAGE = memory
54
51
MAILHOG_HOSTNAME = mailhog
55
52
MAILHOG_CORS_ORIGIN = *
56
53
57
54
# API documentation configuration
55
+ APIDOCS_PROFILE = dev
58
56
APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change 4
4
APP_NAME = docker_nginx_php_mysql
5
5
APP_WORKSPACE = default
6
6
APP_DIR = app
7
- APP_PUBLIC_DIR = $( APP_DIR ) /public
7
+ APP_PUBLIC_DIR = app /public
8
8
9
9
# Common settings
10
10
NGINX_HOST = localhost
@@ -26,10 +26,6 @@ PHP_VERSION=8.3
26
26
PHP_TARGET = dev
27
27
PHP_INI = php.dev.ini
28
28
29
- PHP_DISPLAY_ERRORS = 1
30
- PHP_MEMORY_LIMIT = 256M
31
- XDEBUG_ENABLED = 1
32
-
33
29
# MySQL configuration
34
30
MYSQL_VERSION = 9.2
35
31
MYSQL_HOST = mysql
@@ -41,18 +37,20 @@ MYSQL_USER=dev
41
37
MYSQL_PASSWORD = dev
42
38
43
39
# PHPMyAdmin configuration
44
- PHPMYADMIN_PORT = 8080
45
40
PHPMYADMIN_PROFILE = dev
41
+ PHPMYADMIN_PORT = 8080
46
42
PHPMYADMIN_USER = root
47
43
PHPMYADMIN_PASSWORD = root
48
44
PHPMYADMIN_UPLOAD_LIMIT = 100M
49
45
50
46
# MailHog configuration
47
+ MAILHOG_PROFILE = dev
51
48
MAILHOG_SMTP_PORT = 1025
52
49
MAILHOG_UI_PORT = 8025
53
50
MAILHOG_STORAGE = memory
54
51
MAILHOG_HOSTNAME = mailhog
55
52
MAILHOG_CORS_ORIGIN = *
56
53
57
54
# API documentation configuration
55
+ APIDOCS_PROFILE = dev
58
56
APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change 4
4
APP_NAME = docker_nginx_php_mysql
5
5
APP_WORKSPACE = default
6
6
APP_DIR = app
7
- APP_PUBLIC_DIR = $( APP_DIR ) /public
7
+ APP_PUBLIC_DIR = app /public
8
8
9
9
# Common settings
10
10
NGINX_HOST = localhost
@@ -24,35 +24,33 @@ NGINX_SSL_KEY_SIZE=4096
24
24
# PHP configuration
25
25
PHP_VERSION = 8.3
26
26
PHP_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
32
28
33
29
# MySQL configuration
34
30
MYSQL_VERSION = 9.2
35
31
MYSQL_HOST = mysql
36
32
MYSQL_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
42
38
43
39
# PHPMyAdmin configuration
40
+ PHPMYADMIN_PROFILE = none
44
41
PHPMYADMIN_PORT = 8080
45
- PHPMYADMIN_PROFILE = dev
46
42
PHPMYADMIN_USER = root
47
43
PHPMYADMIN_PASSWORD = root
48
44
PHPMYADMIN_UPLOAD_LIMIT = 100M
49
45
50
46
# MailHog configuration
47
+ MAILHOG_PROFILE = none
51
48
MAILHOG_SMTP_PORT = 1025
52
49
MAILHOG_UI_PORT = 8025
53
50
MAILHOG_STORAGE = memory
54
51
MAILHOG_HOSTNAME = mailhog
55
52
MAILHOG_CORS_ORIGIN = *
56
53
57
54
# API documentation configuration
55
+ APIDOCS_PROFILE = none
58
56
APIDOCS_PORT = 8081
Original file line number Diff line number Diff line change @@ -71,10 +71,6 @@ services:
71
71
volumes :
72
72
- " ./etc/php/${PHP_INI:-php.dev.ini}:/usr/local/etc/php/conf.d/99-custom.ini"
73
73
- " ./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}
78
74
networks :
79
75
- backend-network
80
76
healthcheck :
@@ -120,7 +116,7 @@ services:
120
116
networks :
121
117
- backend-network
122
118
profiles :
123
- - ${PHPMYADMIN_PROFILE :-dev}
119
+ - ${MAILHOG_PROFILE :-dev}
124
120
125
121
apidocs :
126
122
image : nginx:alpine
@@ -131,7 +127,7 @@ services:
131
127
networks :
132
128
- frontend-network
133
129
profiles :
134
- - ${PHPMYADMIN_PROFILE :-dev}
130
+ - ${APIDOCS_PROFILE :-dev}
135
131
136
132
volumes :
137
133
mysql_data :
You can’t perform that action at this time.
0 commit comments