mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +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
|
### MySQL output
|
||||||
# First, you'll have to initialise tables with a .sql file
|
# 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
|
# It needs also to be configured in the cowrie.cfg file
|
||||||
|
|
||||||
cowrie-db:
|
cowrie-db:
|
||||||
image: mariadb:10
|
image: mariadb:10
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/cowrie/db:/var/lib/mysql
|
- /mnt/cowrie/db:/var/lib/mysql
|
||||||
- /mnt/cowrie/schema.sql:/docker-entrypoint-initdb.d
|
- /mnt/cowrie/sql:/docker-entrypoint-initdb.d
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=supersecretpassword
|
- MYSQL_ROOT_PASSWORD=supersecretpassword
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=cowrie
|
||||||
- MYSQL_USER=nextcloud
|
- MYSQL_USER=cowrie
|
||||||
- MYSQL_PASSWORD=supersecretpassword
|
- MYSQL_PASSWORD=supersecretpassword
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user