SpringBalale docker-compose

docker-compose

version: '3'
services:
  mysql-svc:
    image: mysql:5.7
    container_name: mysql
    ports:
      - 3306:3306
    environment:
      TZ: Asia/Shanghai
      MYSQL_ROOT_PASSWORD: root
    command:
      --character-set-server=utf8mb4
      --collation-server=utf8mb4_general_ci
      --explicit_defaults_for_timestamp=true
      --lower_case_table_names=1
      --max_allowed_packet=128M
      --sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO"

  redis-svc:
    container_name: redis
    image: redis:5.0.3
    ports:
      - 6379:6379

  nacos-standalone-svc:
    container_name: nacos-standalone
    image: nacos/nacos-server:v2.1.2
    environment:
      MODE: standalone
    ports:
      - 8848:8848
      - 9848:9848
      - 9849:9849

  sentinel-svc:
    container_name: sentinel
    image: bladex/sentinel-dashboard:1.8.0
    ports:
      - 8858:8858

posted @ 2024-04-07 17:46  vx_guanchaoguo0  阅读(1)  评论(0编辑  收藏  举报