mysql/data
directory to allow the databases to be stored outside of the MySQL container:--network genomehubs-network
.MYSQL_ROOT_HOST='172.16.0.0/255.240.0.0'
will allow all other Docker containers on the same machine to connect to the mysql container as root, even if they are on a different Docker network. This is the simplest configuration as it does not matter which of the available subnets the Docker network has been created on, or which IP addresses are assigned to each of the containers. For more security you may wish to check the subnet of your bridge network and/or restrict access to the IP addresses of specific containers.max_allowed_packet
to allow import of large scaffolds:database.ini
configuration file to set passwords for the database users:DB_ROOT_PASSWORD
should match the value of MYSQL_ROOT_PASSWORD
in the docker run
command aboveDB_HOST
must match the value of --name
in the docker run
command aboveSPECIES_DBS
as a space-separated list (a corresponding database dump must be available at SPECIES_DB_URL
)SPECIES_DBS
for use as a template when importing new data.database.sh
script in a genomehubs/easy-mirror
Docker container:database.ini
configuration file.