2020-05-19 15:27:10 +00:00
|
|
|
version: '2.3'
|
2018-05-14 11:10:07 +00:00
|
|
|
services:
|
2021-02-15 09:35:45 +00:00
|
|
|
mysql57:
|
2018-05-14 11:10:07 +00:00
|
|
|
image: mysql:5.7
|
2020-11-27 01:03:21 +00:00
|
|
|
restart: always
|
2018-05-14 11:10:07 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
2021-03-05 13:39:51 +00:00
|
|
|
MYSQL_ROOT_HOST: ${MYSQL_ROOT_HOST}
|
|
|
|
DATADIR: /mysql/
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${MYSQL_PORT:-3306}
|
2021-03-05 13:39:51 +00:00
|
|
|
command: --server_id=100
|
|
|
|
--log-bin='mysql-bin-1.log'
|
|
|
|
--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: ${MYSQL_LOGS_FS:-tmpfs}
|
|
|
|
source: ${MYSQL_LOGS:-}
|
|
|
|
target: /mysql/
|