2020-07-18 04:13:41 +00:00
|
|
|
services:
|
2021-02-16 07:37:35 +00:00
|
|
|
mysql80:
|
2020-07-18 04:13:41 +00:00
|
|
|
image: mysql:8.0
|
2021-02-16 07:37:35 +00:00
|
|
|
restart: always
|
2020-07-18 04:13:41 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
2024-11-08 16:36:36 +00:00
|
|
|
MYSQL_ROOT_HOST: ${MYSQL8_ROOT_HOST}
|
|
|
|
DATADIR: /var/log/mysql/
|
2021-03-09 07:32:10 +00:00
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${MYSQL8_PORT:-3306}
|
2023-07-04 13:54:52 +00:00
|
|
|
command: --server_id=100 --log-bin='mysql-bin-1.log'
|
|
|
|
--default_authentication_plugin='mysql_native_password'
|
|
|
|
--default-time-zone='+3:00' --gtid-mode="ON"
|
2021-02-20 18:04:19 +00:00
|
|
|
--enforce-gtid-consistency
|
2021-03-09 07:32:10 +00:00
|
|
|
--log-error-verbosity=3
|
2024-11-08 16:36:36 +00:00
|
|
|
--log-error=/var/log/mysql/error.log
|
2021-03-09 07:32:10 +00:00
|
|
|
--general-log=ON
|
2024-11-08 16:36:36 +00:00
|
|
|
--general-log-file=/var/log/mysql/general.log
|
2021-03-09 07:32:10 +00:00
|
|
|
volumes:
|
|
|
|
- type: ${MYSQL8_LOGS_FS:-tmpfs}
|
|
|
|
source: ${MYSQL8_LOGS:-}
|
2024-11-08 16:36:36 +00:00
|
|
|
target: /var/log/mysql/
|
2024-03-23 13:53:13 +00:00
|
|
|
user: ${MYSQL8_DOCKER_USER}
|