Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mysql] how to give parameters in docker-compose #613

Closed
alber70g opened this issue Jun 20, 2016 · 2 comments
Closed

[mysql] how to give parameters in docker-compose #613

alber70g opened this issue Jun 20, 2016 · 2 comments

Comments

@alber70g
Copy link

How to set the parameters as mentioned here (https://github.com/docker-library/docs/tree/master/mysql#configuration-without-a-cnf-file) in the docker-compose.yml?

@tianon
Copy link
Member

tianon commented Jun 27, 2016

That'd be something like this:

db:
  image: mysql:5.7
  command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
  # or:
  command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
  # (to ensure it translates from YAML to arguments properly the way you expect it to)

@yosifkit
Copy link
Member

This looks like it was solved, closing. Feel free to comment if you feel this was closed in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants