diff --git a/README.md b/README.md index 006c48f..78565a0 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,19 @@ This dockerfile will build a new installation of [Pancake App](https://www.panca - A linked MySQL Container # Usage -1. Build the image +- 1. Build the image `docker build -t docker-pancake:latest .` -2. Run the download script to unpack pancake into your mounted volume. +- 2. Run the download script to unpack pancake into your mounted volume. `docker run -v /data/pancake:/var/www/html --rm docker-pancake:latest /opt/download-pancake.sh PAN-YOURLICENSEHERE` -3. Run a MySQL Container +- 3. Run a MySQL Container `docker run -d --restart="always" --name mysql-pancake -e MYSQL_ROOT_PASSWORD=YOURPASSWORDHERE -v /data/mysql-pancake:/var/lib/mysql -v /etc/localtime:/etc/localtime:ro mysql:latest` -4. Login to MySQL and create a Pancake database user +- 4. Login to MySQL and create a Pancake database user `docker exec -it mysql-pancake /bin/bash -c "export TERM=xterm; exec bash"` ~~~~ @@ -28,9 +28,9 @@ CREATE USER 'pancake_user'@'%' IDENTIFIED BY 'YOURPASSWORDHERE'; GRANT ALTER,SELECT,INSERT,UPDATE,DELETE ON pancake_db.* TO 'pancake_user'@'%'; FLUSH PRIVILEGES; ~~~~ -5. Create a pancake container on port 8282 +- Create a pancake container on port 8282 `docker run -d --restart="always" -p 8282:80 --name pancake -v /data/pancake:/var/www/html -v /etc/localtime:/etc/localtime:ro --link mysql-pancake:mysql docker-pancake:latest` -6. Follow the pancake install wizard. +- Follow the pancake install wizard. ~~~~ database host: mysql port: 3306