Sha256: fad8eaf3da3369d3e421e633dcb35a80d126c8ea2f6b6dfd8a22af2711c2f6b6

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

services:
#  Writer
  mysql-1:
    container_name: mysql-1
    image: percona:5.7
    command:
      --server-id=1
      --log-slave-updates=ON
      --gtid-mode=ON
      --enforce-gtid-consistency=ON
      --read-only=OFF
    hostname: 'mysql-1'
    volumes:
      - ./scripts/mysql/writer:/docker-entrypoint-initdb.d
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_HOST: mysql-1
    ports:
      - "33006:3306"
#  Reader
  mysql-2:
    container_name: mysql-2
    image: percona:5.7
    command:
      --server-id=2
      --log-slave-updates=ON
      --gtid-mode=ON
      --enforce-gtid-consistency=ON
      --read-only=ON
    hostname: 'mysql-2'
    volumes:
      - ./scripts/mysql/reader:/docker-entrypoint-initdb.d
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_HOST: mysql-2
    ports:
      - "33007:3306"
#  Proxysql
  proxysql:
    container_name: proxysql
    image: proxysql/proxysql:2.0.11
    volumes:
      - ./scripts/proxysql/proxysql.cnf:/etc/proxysql.cnf
    command: "proxysql -c /etc/proxysql.cnf -f --idle-threads"
    ports:
      - "33005:3306"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lhm-shopify-3.5.0 docker-compose.yml