Sign inSign up

schoolscout/custom-mysql-with-ssl

By schoolscout

Updated over 8 years ago

Image
1

10K+

schoolscout/custom-mysql-with-ssl repository overview

Custom MySQL Docker image

This image is based on the official mysql image. The mysqld configuration will be generated from ENV variables beginning with MYSQLD_ which must be given on docker run.

General use

Example:

docker run -e MYSQLD_INNODB_BUFFER_POOL_SIZE=768000000 schoolscout/custom-mysql-with-ssl:5.6

This will start mysql with the custom config option innodb_buffer_size=768000000.

SSL support

You can set up SSL support for the server through some special ENV variables. You can generate those variables from some existing key, cert and CA files.

Example:

SERVER_KEY=$(cat -E server.key | xargs)
SERVER_CERT=$(cat -E server.crt | xargs)
CA_CERT=$(cat -E CA.crt | xargs)

docker run -e SERVER_KEY=$SERVER_KEY -e SERVER_CERT=$SERVER_CERT -e CA_CERT=$CA_CERT schoolscout/custom-mysql-with-ssl:5.6

Supported versions

The image is currently available with MySQL 5.5 and 5.6. Just use the tag corresponding to the version.

Tag summary

Content type

Image

Digest

sha256:d43c9e825

Size

78.8 MB

Last updated

over 8 years ago

docker pull schoolscout/custom-mysql-with-ssl:5.6