mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
24 lines
813 B
YAML
24 lines
813 B
YAML
services:
|
|
mysql80:
|
|
image: mysql:8.0
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
|
MYSQL_ROOT_HOST: ${MYSQL_ROOT_HOST}
|
|
DATADIR: /mysql/
|
|
expose:
|
|
- ${MYSQL8_PORT:-3306}
|
|
command: --server_id=100 --log-bin='mysql-bin-1.log'
|
|
--default_authentication_plugin='mysql_native_password'
|
|
--default-time-zone='+3:00' --gtid-mode="ON"
|
|
--enforce-gtid-consistency
|
|
--log-error-verbosity=3
|
|
--log-error=/mysql/error.log
|
|
--general-log=ON
|
|
--general-log-file=/mysql/general.log
|
|
volumes:
|
|
- type: ${MYSQL8_LOGS_FS:-tmpfs}
|
|
source: ${MYSQL8_LOGS:-}
|
|
target: /mysql/
|
|
user: ${MYSQL8_DOCKER_USER}
|