Closed
Description
When I start my local project, my Docker ENV variables are not found by Symfony CLI.
When I execute symfony var:export --multiline
, I get the following output.
export SYMFONY_APPLICATION_DEFAULT_ROUTE_HOST=en.wamiz.wip
export SYMFONY_APPLICATION_DEFAULT_ROUTE_PATH=/
export SYMFONY_APPLICATION_DEFAULT_ROUTE_PORT=443
export SYMFONY_APPLICATION_DEFAULT_ROUTE_SCHEME=https
export SYMFONY_APPLICATION_DEFAULT_ROUTE_URL=https://en.wamiz.wip/
export SYMFONY_DEFAULT_ROUTE_HOST=en.wamiz.wip
export SYMFONY_DEFAULT_ROUTE_PATH=/
export SYMFONY_DEFAULT_ROUTE_PORT=443
export SYMFONY_DEFAULT_ROUTE_SCHEME=https
export SYMFONY_DEFAULT_ROUTE_URL=https://en.wamiz.wip/
export SYMFONY_DOCKER_ENV=
export SYMFONY_PROJECT_DEFAULT_ROUTE_HOST=en.wamiz.wip
export SYMFONY_PROJECT_DEFAULT_ROUTE_PATH=/
export SYMFONY_PROJECT_DEFAULT_ROUTE_PORT=443
export SYMFONY_PROJECT_DEFAULT_ROUTE_SCHEME=https
export SYMFONY_PROJECT_DEFAULT_ROUTE_URL=https://en.wamiz.wip/
export SYMFONY_TUNNEL=
export SYMFONY_TUNNEL_ENV=
When I inspect my docker container database :
"Labels": {
"com.docker.compose.config-hash": "170c91fd8716421e27e512a3b8cd9d623a8d4fdff74e4b1a49b95c369d3ea625",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:bd02430bb338544d999651aa695dfe7cedffb1257e7edf7067fb1cf23be4db22",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "international-website",
"com.docker.compose.project.config_files": "/Users/default-admin/travaux/international-website/docker-compose.yaml",
"com.docker.compose.project.environment_file": "/dev/null",
"com.docker.compose.project.working_dir": "/Users/default-admin/travaux/international-website",
"com.docker.compose.service": "database",
"com.docker.compose.version": "2.15.1"
}
Versions :
- Docker : 20.10.23, build 7155243
- Docker compose : v2.15.1
- Symfony CLI : version 5.5.1
Metadata
Metadata
Assignees
Labels
No labels