mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
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"
This commit is contained in:
parent
7e3f077ab4
commit
db2c243080
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user