Skip to content

Commit a281c38

Browse files
lcharetteCopilot
andcommitted
fix(docker): fix MySQL config not applied, wrong SMTP port, duplicate memory_limit
- docker/mysql/Dockerfile: add COPY mysql.conf /etc/mysql/conf.d/custom.cnf so innodb_use_native_aio=0 is actually applied (was silently ignored before) - docker/app/php/custom.ini: remove duplicate memory_limit = 64M directive (was immediately overridden by the memory_limit = 512M line below it) - packages/skeleton/app/.env.docker: fix SMTP_PORT from 2025 to 1025 (Mailpit's actual SMTP port); remove unused DB_ROOT_PASSWORD and ROOT_PASSWORD; set UF_MODE=debug Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4a1636b commit a281c38

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
1111
## [Unreleased]
1212

13+
### Fixed
14+
- [Docker] Fix `.env.docker` `SMTP_PORT` from 2025 to 1025 (Mailpit's actual SMTP port).
15+
- [Docker] Remove unused `DB_ROOT_PASSWORD` and `ROOT_PASSWORD` variables from `.env.docker`.
16+
- [Docker] Set `UF_MODE=debug` (was empty) in `.env.docker`.
17+
1318
### Changed
1419
- `stylesheets_site.html.twig` now calls `vite_css_preload('main.ts')` before `vite_css()`, emitting `<link rel="preload" as="style">` hints for CSS files (requires `userfrosting/vite-php-twig` ^1.2.0).
1520

app/.env.docker

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
# Sample UserFrosting environment variables definition file for Docker environment.
22
# Note that in production, it is strongly recommended that you set these variables directly in your environment instead.
33

4-
UF_MODE=
4+
UF_MODE=debug
55

66
DB_CONNECTION=mysql
77
DB_HOST=mysql
88
DB_PORT=3306
99
DB_NAME=userfrosting
1010
DB_USER=docker
1111
DB_PASSWORD=secret
12-
DB_ROOT_PASSWORD=secret
13-
ROOT_PASSWORD=secret
1412

1513
MAIL_MAILER=smtp # Set to one of 'smtp', 'mail', 'qmail', 'sendmail'
1614
SMTP_HOST=mailpit
1715
SMTP_USER=relay@example.com
1816
SMTP_PASSWORD=password
19-
SMTP_PORT=2025
17+
SMTP_PORT=1025
2018
SMTP_SECURE=false
2119
SMTP_AUTH=false
2220

0 commit comments

Comments
 (0)