@@ -75,35 +75,51 @@ NETWORK_NAME_TRAEFIK_PUBLIC_LOCAL=traefik
7575# Traefik network name (public)
7676NETWORK_NAME_TRAEFIK_PUBLIC_PRODUCTION = traefik-public
7777
78- # https port
78+ # https port (is usually not changed)
79+ PORT_HTTP = 80
80+
81+ # https port (is usually not changed)
7982PORT_HTTPS = 443
8083
81- # Internal docker adminer http port
84+ # Internal docker adminer http port (is usually not changed)
85+ PORT_MYSQL_INTERNAL = 3306
86+
87+ # Internal docker adminer http port (is usually not changed)
8288PORT_HTTP_ADMINER_INTERNAL = 8080
8389
84- # Internal docker mailhog http port
90+ # Internal docker mailhog http port (is usually not changed)
8591PORT_HTTP_MAILHOG_INTERNAL = 8025
8692
87- # Internal docker mailhog smtp port
93+ # Internal docker mailhog smtp port (is usually not changed)
8894PORT_SMTP_MAILHOG_INTERNAL = 1025
8995
9096# Expose api https port (To bypass the Traefik proxy or if it is not installed)
91- PORT_HTTPS_API_EXPOSE = 44443
97+ PORT_HTTP_APP_EXPOSE = 5080
98+
99+ # Expose api https port (To bypass the Traefik proxy or if it is not installed)
100+ PORT_HTTPS_APP_EXPOSE = 5043
101+
102+ # Expose db (mysql) port (External db app)
103+ # Attention for PORT_DB_MAIN_EXPOSE: Please also make changes to the DOCTRINE_DB_PORT variable.
104+ PORT_DB_MAIN_EXPOSE = 5006
105+
106+ # Expose db (mysql) port (External db app)
107+ PORT_DB_TEST_EXPOSE = 5007
92108
93109# Expose adminer http port (To bypass the Traefik proxy or if it is not installed)
94- PORT_HTTP_ADMINER_EXPOSE = 8081
110+ PORT_HTTP_ADMINER_EXPOSE = 5081
95111
96112# Expose mailhog http port (To bypass the Traefik proxy or if it is not installed)
97- PORT_HTTP_MAILHOG_EXPOSE = 8082
113+ PORT_HTTP_MAILHOG_EXPOSE = 5082
98114
99115# Expose mailhog smtp port (To bypass the Traefik proxy or if it is not installed)
100- PORT_SMTP_MAILHOG_EXPOSE = 1025
116+ PORT_SMTP_MAILHOG_EXPOSE = 5025
101117
102118# ##< General Config / Docker Compose Settings ###
103119
104120# ##> symfony/framework-bundle ###
105- APP_ENV = dev
106- APP_DEBUG = 1
121+ APP_ENV = prod
122+ APP_DEBUG = 0
107123APP_SECRET = 3b337448a0100c94f60efc26437e0a57
108124# ##< symfony/framework-bundle ###
109125
@@ -115,11 +131,12 @@ PHP_VERSION_HOSTNAME=8-1-11
115131# ##< PHP Configuration ###
116132
117133# ##> Docker Configuration: MySQL secrets and configurations
134+ MYSQL_SERVER_HOST = 127.0.0.1
118135MYSQL_SERVER_ROOT_USER = root
119136MYSQL_SERVER_ROOT_PASSWORD = secret-pass
120- MYSQL_SERVER_DB = hdb
121- MYSQL_SERVER_DB_TEST = hdb -test
122- MYSQL_SERVER_PORT = 3306
137+ MYSQL_SERVER_DB = pavb
138+ MYSQL_SERVER_DB_TEST = pavb -test
139+ MYSQL_SERVER_PORT = ${ PORT_MYSQL_INTERNAL }
123140MYSQL_SERVER_VERSION = 8.0
124141MYSQL_SERVER_DRIVER = pdo_mysql
125142# ##< Docker Configuration: MySQL secrets and configurations
@@ -131,12 +148,6 @@ MAIL_SERVER_HOST=localhost
131148MAIL_SERVER_PORT = 1025
132149# ##< Docker Configuration: Mail secrets and configurations
133150
134- # ##> Docker Configuration: General configurations
135- # Attention for EXPOSE_MYSQL_PORT: Please also make changes to the DOCTRINE_DB_PORT variable.
136- EXPOSE_MYSQL_PORT = 3336
137- EXPOSE_MYSQL_PORT_TEST = 3337
138- # ##< Docker Configuration: General configurations
139-
140151# #> doctrine/doctrine-bundle (mysql) ###
141152# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
142153# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
@@ -145,32 +156,15 @@ DOCTRINE_DB_VERSION=${MYSQL_SERVER_VERSION}
145156DOCTRINE_DB_PATH =
146157DOCTRINE_DB_NAME = ${ MYSQL_SERVER_DB }
147158DOCTRINE_DB_HOST = ${ ENV_DB_HOST:-127.0.0.1 }
148- # Workaround for default port for DOCTRINE_DB_PORT: Because ${ENV_DB_PORT:-${EXPOSE_MYSQL_PORT }} does not work
149- DOCTRINE_DB_PORT = ${ ENV_DB_PORT:-3336 }
159+ # Workaround for default port for DOCTRINE_DB_PORT: Because ${ENV_DB_PORT:-${PORT_DB_MAIN_EXPOSE }} does not work
160+ DOCTRINE_DB_PORT = ${ ENV_DB_PORT:-50306 }
150161DOCTRINE_DB_USER = ${ MYSQL_SERVER_ROOT_USER }
151162DOCTRINE_DB_PASS = ${ MYSQL_SERVER_ROOT_PASSWORD }
152163DOCTRINE_DB_SSL_CA =
153164DOCTRINE_DB_SSL_VERIFY_SERVER_CERT = false
154165DOCTRINE_DB_INIT_COMMAND = " SET NAMES utf8"
155166# ##< doctrine/doctrine-bundle (mysql) ###
156167
157- # #> doctrine/doctrine-bundle (mysql) ###
158- # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
159- # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
160- DOCTRINE_DB_DRIVER_SQLITE = ${ MYSQL_SERVER_DRIVER }
161- DOCTRINE_DB_VERSION_SQLITE = ${ MYSQL_SERVER_VERSION }
162- DOCTRINE_DB_PATH_SQLITE =
163- DOCTRINE_DB_NAME_SQLITE = ${ MYSQL_SERVER_DB }
164- DOCTRINE_DB_HOST_SQLITE = ${ ENV_DB_HOST:-127.0.0.1 }
165- # Workaround for default port for DOCTRINE_DB_PORT: Because ${ENV_DB_PORT:-${EXPOSE_MYSQL_PORT}} does not work
166- DOCTRINE_DB_PORT_SQLITE = ${ ENV_DB_PORT:-3336 }
167- DOCTRINE_DB_USER_SQLITE = ${ MYSQL_SERVER_ROOT_USER }
168- DOCTRINE_DB_PASS_SQLITE = ${ MYSQL_SERVER_ROOT_PASSWORD }
169- DOCTRINE_DB_SSL_CA_SQLITE =
170- DOCTRINE_DB_SSL_VERIFY_SERVER_CERT_SQLITE = false
171- DOCTRINE_DB_INIT_COMMAND_SQLITE = " SET NAMES utf8"
172- # ##< doctrine/doctrine-bundle (mysql) ###
173-
174168# ##> own variables ###
175169PROJECT_NAME = " PHP Api Version Bundle"
176170PROJECT_DESCRIPTION = " Provides the base API plattform functionality."
@@ -179,7 +173,7 @@ API_COUNTRY_CODE=de_DE
179173# ##< own variables ###
180174
181175# ##> table-dumper (local docker settings) ###
182- MYSQLDUMP_DATABASE_URL = mysql://root:secret-pass@127.0.0.1:3336/hdb ?serverVersion=8.0
176+ MYSQLDUMP_DATABASE_URL = mysql://${ MYSQL_SERVER_ROOT_USER } : ${ MYSQL_SERVER_ROOT_PASSWORD } @ ${ MYSQL_SERVER_HOST } : ${ MYSQL_SERVER_PORT } / ${ MYSQL_SERVER_DB } ?serverVersion=${ MYSQL_SERVER_VERSION }
183177MYSQLDUMP_IGNORED_TABLES =
184178# MYSQLDUMP_FILTERED_TABLES=
185179# MYSQLDUMP_TABLES_NO_DATA=
@@ -191,5 +185,5 @@ CORS_ALLOW_ORIGIN='^https?://(php-api-version-bundle.ixnode.de|api-version.local
191185# ##< nelmio/cors-bundle ###
192186
193187# ##> symfony/mailer ###
194- MAILER_DSN = smtp://localhost:1025
188+ MAILER_DSN = smtp://${ MAIL_SERVER_PORT } : ${ MAIL_SERVER_PORT }
195189# ##< symfony/mailer ###
0 commit comments