From db2c2430807a4109212175320bc016f35dad781c Mon Sep 17 00:00:00 2001 From: Florent Hemmi Date: Fri, 31 Mar 2017 19:23:52 +0200 Subject: [PATCH] Fix Cowrie README (#164) - Use the correct url for the mysql schema - Mounting a file in place of a folder is now working - Replace database name and user name with "cowrie" instead of "nextcloud" --- cowrie/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cowrie/README.md b/cowrie/README.md index e595d47..b625302 100644 --- a/cowrie/README.md +++ b/cowrie/README.md @@ -42,18 +42,19 @@ cowrie: ### MySQL output # First, you'll have to initialise tables with a .sql file -# wget https://github.com/micheloosterhof/cowrie/blob/master/doc/sql/mysql.sql -P /mnt/cowrie/schema.sql +# mkdir -p /mnt/cowrie/sql +# wget https://raw.githubusercontent.com/micheloosterhof/cowrie/master/doc/sql/mysql.sql -P /mnt/cowrie/sql/cowrie.sql # It needs also to be configured in the cowrie.cfg file cowrie-db: image: mariadb:10 volumes: - /mnt/cowrie/db:/var/lib/mysql - - /mnt/cowrie/schema.sql:/docker-entrypoint-initdb.d + - /mnt/cowrie/sql:/docker-entrypoint-initdb.d environment: - MYSQL_ROOT_PASSWORD=supersecretpassword - - MYSQL_DATABASE=nextcloud - - MYSQL_USER=nextcloud + - MYSQL_DATABASE=cowrie + - MYSQL_USER=cowrie - MYSQL_PASSWORD=supersecretpassword ```