hooks: post-start: # Magento triggers (created with DEFINER=`db`@`%`) write to changelog tables # in the magento1/magento2 databases, so the `db` user needs full privileges # there - not just on the default `db` database. - exec: mysql -h db -uroot -proot -e "GRANT ALL PRIVILEGES ON magento1.* TO 'db'@'%'; GRANT ALL PRIVILEGES ON magento2.* TO 'db'@'%'; FLUSH PRIVILEGES;"