-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated composer dependencies, extended environment configuration, do…
…cumentation, fixed rabbitmq volumes mapping issue.
- Loading branch information
DKravtsov
committed
Oct 31, 2024
1 parent
f765e03
commit b60a9b8
Showing
31 changed files
with
2,512 additions
and
2,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,20 +18,35 @@ | |
COMPOSE_PROJECT_NAME=environment2 | ||
###< docker compose configuration ### | ||
|
||
###> docker configuration that can be overridden in .env.local ### | ||
###> Apache docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ### | ||
WEB_PORT_HTTP=80 | ||
WEB_PORT_SSL=443 | ||
###< Apache docker configuration ### | ||
|
||
###> XDebug docker configuration. Can be overridden in: .env.local. ### | ||
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS. | ||
XDEBUG_CONFIG=main | ||
# Sometimes we need to use different xdebug versions, list of versions can be found here - https://pecl.php.net/package/xdebug | ||
XDEBUG_VERSION=3.3.2 | ||
# MySQL version, recommend values: 8.4|8.3|8.2|8.1|8.0 | ||
MYSQL_VERSION=8.4 | ||
###< XDebug docker configuration ### | ||
|
||
###> MySQL docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ### | ||
# MySQL version, recommend values: 9.1.0|9.0.1|8.4.2|8.3.0|8.2.0|8.1.0|8.0.39 | ||
MYSQL_VERSION=8.4.2 | ||
# MySQL INNODB_USE_NATIVE_AIO possible values: 1|0. Set to 0 when AIO interface is not supported on OSX. https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_use_native_aio | ||
INNODB_USE_NATIVE_AIO=1 | ||
# Sometimes AWS MySQL RDS has SQL_MODE="NO_ENGINE_SUBSTITUTION" (https://github.com/awsdocs/amazon-rds-user-guide/issues/160) but MySQL default described here - https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_sql_mode | ||
SQL_MODE="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" | ||
###< docker configuration that can be overridden in .env.local ### | ||
MYSQL_ROOT_PASSWORD=secret | ||
MYSQL_PORT=33061 | ||
###< MySQL docker configuration ### | ||
|
||
###> RabbitMQ docker configuration. Can be overridden in: .env.local, .env.staging, .env.prod. ### | ||
RABBITMQ_ERLANG_COOKIE=7ead507151fc4461b9f45c1161384a04 | ||
RABBITMQ_USER=guest | ||
RABBITMQ_PASS=guest | ||
RABBITMQ_MANAGEMENT_PORT=15672 | ||
###< RabbitMQ docker configuration ### | ||
|
||
###> symfony/framework-bundle ### | ||
APP_ENV=dev | ||
|
@@ -47,15 +62,15 @@ TRUSTED_PROXIES=127.0.0.1,REMOTE_ADDR | |
# | ||
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" | ||
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8" | ||
DATABASE_URL=mysql://root:secret@mysql:3306/symfony | ||
DATABASE_URL=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/symfony | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/mailer ### | ||
MAILER_DSN=smtp://user:pass@mail:1025 | ||
###< symfony/mailer ### | ||
|
||
###> symfony/messenger ### | ||
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages | ||
MESSENGER_TRANSPORT_DSN=amqp://${RABBITMQ_USER}:${RABBITMQ_PASS}@rabbitmq:5672/%2f/messages | ||
###< symfony/messenger ### | ||
|
||
###> symfony/lock ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
# define your env variables for the prod env here | ||
MYSQL_ROOT_PASSWORD=secret | ||
|
||
RABBITMQ_ERLANG_COOKIE=7ead507151fc4461b9f45c1161384a04 | ||
RABBITMQ_USER=guest | ||
RABBITMQ_PASS=guest | ||
|
||
APP_ENV=prod | ||
APP_SECRET=42f011ec3a7bde0bec87364b1d967194 | ||
APP_DEBUG=0 | ||
|
||
###> doctrine/doctrine-bundle ### | ||
DATABASE_URL=mysql://root:secret@mysql:3306/symfony | ||
DATABASE_URL=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/symfony | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/mailer ### | ||
MAILER_DSN=smtp://user:[email protected]?encryption=tls | ||
###< symfony/mailer ### | ||
|
||
###> symfony/messenger ### | ||
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages | ||
MESSENGER_TRANSPORT_DSN=amqp://${RABBITMQ_USER}:${RABBITMQ_PASS}@rabbitmq:5672/%2f/messages | ||
###< symfony/messenger ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
# define your env variables for the staging env here | ||
MYSQL_ROOT_PASSWORD=secret | ||
|
||
RABBITMQ_ERLANG_COOKIE=7ead507151fc4461b9f45c1161384a04 | ||
RABBITMQ_USER=guest | ||
RABBITMQ_PASS=guest | ||
|
||
APP_ENV=staging | ||
APP_SECRET=42f011ec3a7bde0bec87364b1d967194 | ||
APP_DEBUG=0 | ||
|
||
###> doctrine/doctrine-bundle ### | ||
DATABASE_URL=mysql://root:secret@mysql:3306/symfony | ||
DATABASE_URL=mysql://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/symfony | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/mailer ### | ||
MAILER_DSN=smtp://user:[email protected]?encryption=tls | ||
###< symfony/mailer ### | ||
|
||
###> symfony/messenger ### | ||
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@rabbitmq:5672/%2f/messages | ||
MESSENGER_TRANSPORT_DSN=amqp://${RABBITMQ_USER}:${RABBITMQ_PASS}@rabbitmq:5672/%2f/messages | ||
###< symfony/messenger ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.