recreate a container after configuration changes
I changed a container’s environment variables and restarted it, but nothing changed.
A restart only stops and starts the existing container. It does not necessarily rebuild it with the new configuration.
Recreate the service instead:
docker compose up -d --force-recreate service_name
When configuration changes are ignored, make sure the container was actually recreated.