version: “3”
    services:
    mysql:
    image: mysql:8.0
    ports:
    - 3306:3306
    command:
    - —character-set-server=utf8mb4
    - —collation-server=utf8mb4_unicode_ci
    - —skip-character-set-client-handshake
    - —default-time-zone=SYSTEM
    - —log-timestamps=SYSTEM
    - —max-connections=10240
    # environment:
    # MYSQL_ROOT_PASSWORD:123456789

    redis:
    image: redis:alpine
    ports:
    - 6379:6379
    # environment:
    # - TZ=Asia/Shanghai
    # elasticsearch:
    # image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0
    # container_name: es7_01
    # environment:
    # - cluster.name=geektime
    # - node.name=es7_01
    # - bootstrap.memory_lock=true
    # - “ES_JAVA_OPTS=-Xms512m -Xmx512m”
    # - discovery.seed_hosts=es7_01,es7_02
    # - cluster.initial_master_nodes=es7_01,es7_02