Commit af0f479
committed
minor #15424 [Symfony CLI] Docker integration and MailCatcher prefix (Kocal)
This PR was merged into the 4.4 branch.
Discussion
----------
[Symfony CLI] Docker integration and MailCatcher prefix
Hi 👋
Given my `docker-compose.yaml`:
```yaml
version: '3.6'
volumes:
db-data:
redis-data:
services:
database:
image: 'mysql:5.7'
ports: [3306]
environment:
MYSQL_USER: 'app'
MYSQL_PASSWORD: 'app'
MYSQL_DATABASE: 'app'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
TZ: Etc/UTC
volumes:
- db-data:/var/lib/mysql
- .manala/init-db:/docker-entrypoint-initdb.d
healthcheck:
test: mysqladmin ping --silent
interval: 10s
timeout: 5s
retries: 5
phpmyadmin:
image: phpmyadmin
ports: [80]
environment:
PMA_HOST: 'database'
PMA_USER: 'app'
PMA_PASSWORD: 'app'
redis:
image: 'redis:alpine'
ports: [6379]
environment:
TZ: Etc/UTC
volumes:
- redis-data:/data
phpredisadmin:
image: erikdubbelboer/phpredisadmin
ports: [80]
environment:
REDIS_1_HOST: 'redis'
mailcatcher:
image: 'schickling/mailcatcher'
ports: [1025, 1080]
environment:
TZ: Etc/UTC
```
When running `docker-compose up` and `symfony var:export --multiline`, the env vars for MailCatcher are prefixed (by default) by `MAILCATCHER_` but not by `MAILER_`:

Commits
-------
506f1f9 [Symfony CLI] Docker integration and MailCatcher prefix1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments