I'm using Laravel Sail with MySQL. We have triggers on our database and I need to be able to set log_bin_trust_function_creators = 1
in the configuration. For the life of me, I can't figure out set this automatically when the container is created.
Asked
Active
Viewed 358 times
0

Scott Keck-Warren
- 1,894
- 3
- 18
- 33
1 Answers
0
You could use a volume in docker-compose to replace the config. Then it will use your new config. To copy the current config from the container to your host OS you can use docker cp <container>:<file> <destination>
.

online Thomas
- 8,864
- 6
- 44
- 85