https://github.com/beardocker/imdock-service
service for mariadb, mysql, redis
https://github.com/beardocker/imdock-service
mariadb mysql redis
Last synced: 9 months ago
JSON representation
service for mariadb, mysql, redis
- Host: GitHub
- URL: https://github.com/beardocker/imdock-service
- Owner: BearDocker
- Created: 2017-04-20T15:35:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T03:15:58.000Z (over 7 years ago)
- Last Synced: 2025-04-12T09:53:28.821Z (9 months ago)
- Topics: mariadb, mysql, redis
- Language: Shell
- Size: 9.77 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
imdock-service
====================================================
## What's this:
Mysql, Redis, Postgres, Mailcatcher, Mailhog, PureFtp
## How to choose the version:
* if you use Docker Toolbox, You must choose Mysql (no volume), Because MariaDB can not use the mapping to mount the data
* if you use Docker for windows, You must choose MariaDB (volume)
## How to and other docker-compose use the same network :
#if you not have group network, you can create this, and other docker-compose use this network setting
~ $ docker network create --driver bridge imdockgroup
## How to setting PureFtp :
#if you need use ftp manage you volume (imagine10255 is user name)
~ $ docker exec -it imdock-ftp bash
imdock-ftp ~ $ pure-pw useradd imagine10255 -u ftpuser -d /home/ftpusers/imagine10255
imdock-ftp ~ $ pure-pw mkdb
Your Client Ftp Setting [Transfer mode=Active(POST)] 主動式
## How to restore mysql :
```
$ docker exec -i imdock-mysql mysql -uroot -pP@ssw0rd {YOUR_DB_NAME} < {YOUR_BACKUP_SQL_FILE_NAME}.sql
```
`ERROR 1406 (22001) at line 73: Data too long for column 'name' at row 1` ?
--sql-mode=, Delete "STRICT_TRANS_TABLES"
## How to backup mysql :
```
# setting your mysqldump.sh (db-name, db-password, backup-path)
~ $ crontab -e
# add this 每天半夜3點半執行備份,並且保留7天
30 03 * * * sh /{your_imdock-service_path}/mysqldump.sh
```