2021-03-31 21:46:07 +00:00
|
|
|
version: '2.3'
|
|
|
|
services:
|
|
|
|
mysql2:
|
2024-02-13 12:15:46 +00:00
|
|
|
image: mysql:8.0
|
2021-03-31 21:46:07 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
2021-04-12 07:03:12 +00:00
|
|
|
MYSQL_ROOT_HOST: ${MYSQL_CLUSTER_ROOT_HOST}
|
2021-04-08 09:30:24 +00:00
|
|
|
DATADIR: /mysql/
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${MYSQL_CLUSTER_PORT:-3306}
|
2023-07-04 13:54:52 +00:00
|
|
|
command: --server_id=100
|
|
|
|
--log-bin='mysql-bin-2.log'
|
|
|
|
--default-time-zone='+3:00'
|
|
|
|
--gtid-mode="ON"
|
2021-04-08 09:30:24 +00:00
|
|
|
--enforce-gtid-consistency
|
|
|
|
--log-error-verbosity=3
|
|
|
|
--log-error=/mysql/2_error.log
|
|
|
|
--general-log=ON
|
|
|
|
--general-log-file=/mysql/2_general.log
|
|
|
|
volumes:
|
2021-04-12 07:03:12 +00:00
|
|
|
- type: ${MYSQL_CLUSTER_LOGS_FS:-tmpfs}
|
|
|
|
source: ${MYSQL_CLUSTER_LOGS:-}
|
2021-04-08 09:30:24 +00:00
|
|
|
target: /mysql/
|
2021-03-31 21:46:07 +00:00
|
|
|
mysql3:
|
2024-02-13 12:15:46 +00:00
|
|
|
image: mysql:8.0
|
2021-04-12 07:03:12 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
|
|
|
MYSQL_ROOT_HOST: ${MYSQL_CLUSTER_ROOT_HOST}
|
|
|
|
DATADIR: /mysql/
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${MYSQL_CLUSTER_PORT:-3306}
|
2023-07-04 13:54:52 +00:00
|
|
|
command: --server_id=100
|
|
|
|
--log-bin='mysql-bin-3.log'
|
|
|
|
--default-time-zone='+3:00'
|
|
|
|
--gtid-mode="ON"
|
2021-04-12 07:03:12 +00:00
|
|
|
--enforce-gtid-consistency
|
|
|
|
--log-error-verbosity=3
|
|
|
|
--log-error=/mysql/3_error.log
|
|
|
|
--general-log=ON
|
|
|
|
--general-log-file=/mysql/3_general.log
|
|
|
|
volumes:
|
|
|
|
- type: ${MYSQL_CLUSTER_LOGS_FS:-tmpfs}
|
|
|
|
source: ${MYSQL_CLUSTER_LOGS:-}
|
|
|
|
target: /mysql/
|
2021-03-31 21:46:07 +00:00
|
|
|
mysql4:
|
2024-02-13 12:15:46 +00:00
|
|
|
image: mysql:8.0
|
2021-03-31 21:46:07 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: clickhouse
|
2021-04-12 07:03:12 +00:00
|
|
|
MYSQL_ROOT_HOST: ${MYSQL_CLUSTER_ROOT_HOST}
|
2021-04-08 09:30:24 +00:00
|
|
|
DATADIR: /mysql/
|
|
|
|
expose:
|
2023-01-02 16:45:50 +00:00
|
|
|
- ${MYSQL_CLUSTER_PORT:-3306}
|
2023-07-04 13:54:52 +00:00
|
|
|
command: --server_id=100
|
|
|
|
--log-bin='mysql-bin-4.log'
|
|
|
|
--default-time-zone='+3:00'
|
|
|
|
--gtid-mode="ON"
|
2021-04-08 09:30:24 +00:00
|
|
|
--enforce-gtid-consistency
|
|
|
|
--log-error-verbosity=3
|
|
|
|
--log-error=/mysql/4_error.log
|
|
|
|
--general-log=ON
|
|
|
|
--general-log-file=/mysql/4_general.log
|
|
|
|
volumes:
|
2021-04-12 07:03:12 +00:00
|
|
|
- type: ${MYSQL_CLUSTER_LOGS_FS:-tmpfs}
|
|
|
|
source: ${MYSQL_CLUSTER_LOGS:-}
|
2023-07-04 13:54:52 +00:00
|
|
|
target: /mysql/
|