Last active
August 29, 2015 14:20
-
-
Save jimklo/c10bc18fbebc77cb00e1 to your computer and use it in GitHub Desktop.
Docker MySQL + Limesurvey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pushd `dirname $0` | |
current_dir=$(pwd) | |
MYSQL_ROOT_PASSWORD=password | |
MYSQL_DATA_DIR=${current_dir}/var/lib/mysql | |
echo "MYSQL_DATA_DIR: ${MYSQL_DATA_DIR}" | |
docker run --name mysql -e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -d mysql:5.6.24 | |
# doesn't work for some reason | |
#docker run --name mysql -e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} -v ${MYSQL_DATA_DIR}:/var/lib/mysql -d mysql:5.6.24 | |
docker run --name limesurvey --link mysql:mysql -d -p 8080:80 -p 8443:443 sctrcdr/limesurvey | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment