docker-compose.yml
** --secure-file-priv='/tmp'** を付けないとcsvを吐き出せない
version: '3.4'
services:
mysql-test:
container_name: mysql-test
image: mysql:8.0.17
environment:
TERM: linux
LANG: "C.UTF-8"
LOG_ROTATION_DAY: 7
MYSQL_ROOT_PASSWORD: Passw0rd
MYSQL_DATABASE: test
logging:
driver: json-file
options:
max-size: "50m"
max-file: "2"
restart: "no"
ports:
- 3306:3306
volumes:
- mysql-test-database-data:/var/lib/mysql:cached
command: --innodb-use-native-aio=0 --secure-file-priv='/tmp'
volumes:
mysql-test-database-data:
external:
name: mysql-test-database-data