{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/wordpress/issues/339","repository_url":"https://api.github.com/repos/docker-library/wordpress","labels_url":"https://api.github.com/repos/docker-library/wordpress/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/wordpress/issues/339/comments","events_url":"https://api.github.com/repos/docker-library/wordpress/issues/339/events","html_url":"https://github.com/docker-library/wordpress/issues/339","id":366580339,"node_id":"MDU6SXNzdWUzNjY1ODAzMzk=","number":339,"title":"Not picking up password from linked mysql container","user":{"login":"guidodobboletta","id":24704808,"node_id":"MDQ6VXNlcjI0NzA0ODA4","avatar_url":"https://avatars0.githubusercontent.com/u/24704808?v=4","gravatar_id":"","url":"https://api.github.com/users/guidodobboletta","html_url":"https://github.com/guidodobboletta","followers_url":"https://api.github.com/users/guidodobboletta/followers","following_url":"https://api.github.com/users/guidodobboletta/following{/other_user}","gists_url":"https://api.github.com/users/guidodobboletta/gists{/gist_id}","starred_url":"https://api.github.com/users/guidodobboletta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidodobboletta/subscriptions","organizations_url":"https://api.github.com/users/guidodobboletta/orgs","repos_url":"https://api.github.com/users/guidodobboletta/repos","events_url":"https://api.github.com/users/guidodobboletta/events{/privacy}","received_events_url":"https://api.github.com/users/guidodobboletta/received_events","type":"User","site_admin":false},"labels":[{"id":101347782,"node_id":"MDU6TGFiZWwxMDEzNDc3ODI=","url":"https://api.github.com/repos/docker-library/wordpress/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-04T00:38:26Z","updated_at":"2018-10-16T19:19:30Z","closed_at":"2018-10-04T16:46:48Z","author_association":"NONE","body":"According to the documentation Docker Hub:\r\n\r\n`-e WORDPRESS_DB_PASSWORD=... (defaults to the value of the MYSQL_ROOT_PASSWORD environment variable from the linked mysql container)`\r\n\r\nI have this docker-compose file that should work but it doesn't. When trying to configure wordpress it still asks me for all my database information. \r\n\r\nAfter adding `WORDPRESS_DB_PASSWORD` to the wordpress service it actually works. \r\n\r\nIt seems that the linked container code is not working at all, I've also had a look at the entrypoint script for the `wordpress:php7.0` image and couldn't find any reference to `MYSQL_ROOT_PASSWORD` neither on this entire github repo.\r\n \r\nThis is my compose file:\r\n\r\n```\r\nversion: '3.7' \r\nservices:     \r\n  wordpress:   \r\n   image: 'wordpress:php7.0' \r\n   ports: \r\n    - '5000:80'\r\n   links:\r\n     - mariadb:mysql\r\n\r\n  mariadb:\r\n   image: 'mariadb'\r\n   ports:\r\n    - '3306:3306'\r\n   volumes: \r\n     - mariadb:/var/lib/mysql\r\n   environment:\r\n     - MYSQL_ROOT_PASSWORD=tmr\r\n\r\nvolumes:\r\n  mariadb:\r\n```"},"comment":{"url":"https://api.github.com/repos/docker-library/wordpress/issues/comments/430365004","html_url":"https://github.com/docker-library/wordpress/issues/339#issuecomment-430365004","issue_url":"https://api.github.com/repos/docker-library/wordpress/issues/339","id":430365004,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM2NTAwNA==","user":{"login":"tianon","id":161631,"node_id":"MDQ6VXNlcjE2MTYzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/161631?v=4","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T19:19:30Z","updated_at":"2018-10-16T19:19:30Z","author_association":"MEMBER","body":"Correct -- that's the expected behavior.  Environment variables are _only_ automatically shared with `--link`, and _only_ when using the default bridge network.  You will need to specify the password environment variable on your WordPress container directly."}}
{"actor":{"display_login":"tianon"}}