github.com/polarismesh/polaris@v1.17.8/release/standalone/docker-compose/docker-compose.yaml (about) 1 # Tencent is pleased to support the open source community by making Polaris available. 2 # 3 # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. 4 # 5 # Licensed under the BSD 3-Clause License (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # https://opensource.org/licenses/BSD-3-Clause 10 # 11 # Unless required by applicable law or agreed to in writing, software distributed 12 # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 # specific language governing permissions and limitations under the License. 15 16 version: '3.9' 17 18 networks: 19 backend: 20 driver: bridge 21 22 volumes: 23 vlm_data_mysql: 24 external: true 25 vlm_data_redis: 26 external: true 27 28 services: 29 polaris-server: 30 container_name: polaris-server 31 hostname: polaris-server 32 image: polarismesh/polaris-server:##POLARIS_SERVER_VERSION## 33 restart: always 34 volumes: 35 - ./server/polaris-server.yaml:/root/conf/polaris-server.yaml 36 expose: # 用于北极星集群内部访问 37 - 8090 # api-http 38 - 8091 # service-grpc 39 - 8093 # config-grpc 40 - 8761 # service-eureka 41 - 15010 # xds-v3 42 ports: # 用于其他服务访问北极星 43 - "8090:8090" # api-http 44 - "8091:8091" # service-grpc 45 - "8093:8093" # config-grpc 46 - "8761:8761" # service-eureka 47 - "15010:15010" # xds-v3 48 networks: 49 - backend 50 links: 51 - mysql 52 - redis 53 depends_on: 54 - redis 55 - mysql 56 polaris-console: 57 container_name: polaris-console 58 hostname: polaris-console 59 image: polarismesh/polaris-console:##POLARIS_CONSOLE_VERSION## 60 restart: always 61 volumes: 62 - ./console/polaris-console.yaml:/root/polaris-console.yaml 63 ports: 64 - "8080:8080" 65 networks: 66 - backend 67 depends_on: 68 - polaris-server 69 - pushgateway 70 links: 71 - polaris-server 72 - pushgateway 73 polaris-limiter: 74 container_name: polaris-limiter 75 hostname: polaris-limiter 76 image: polarismesh/polaris-limiter:##POLARIS_LIMITER_VERSION## 77 restart: always 78 environment: 79 - MY_ID=1 80 volumes: 81 - ./limiter/polaris-limiter.yaml:/root/polaris-limiter.yaml 82 expose: # 用于北极星集群内部访问 83 - 8100 # service-http 84 - 8101 # service-grpc 85 ports: 86 - "8100:8100" 87 - "8101:8101" 88 networks: 89 - backend 90 depends_on: 91 - polaris-server 92 links: 93 - polaris-server 94 mysql: 95 build: mysql 96 container_name: mysql 97 hostname: mysql 98 platform: linux/amd64 99 restart: always 100 command: mysqld --optimizer-trace-max-mem-size=102400 --default-authentication-plugin=mysql_native_password 101 environment: 102 - TZ=Asia/Shanghai 103 - LANG=zh_CN.utf8 104 - MYSQL_DATABASE=polaris_server 105 - MYSQL_USER=default 106 - MYSQL_PASSWORD=secret 107 - MYSQL_ROOT_PASSWORD=polaris 108 volumes: 109 - vlm_data_mysql:/var/lib/mysql 110 - ./mysql/mysqld.cnf:/etc/mysql/conf.d/custom.cnf:cached 111 - ./mysql:/docker-entrypoint-initdb.d 112 ports: 113 - "3306:3306" 114 expose: 115 - 3306 116 networks: 117 - backend 118 redis: 119 image: 'bitnami/redis:latest' 120 restart: always 121 environment: 122 - REDIS_PASSWORD=polaris 123 volumes: 124 - vlm_data_redis:/data 125 networks: 126 - backend 127 expose: 128 - 6379 129 prometheus: 130 container_name: prometheus 131 hostname: polaris-prometheus 132 build: prometheus 133 restart: always 134 networks: 135 - backend 136 expose: 137 - 9090 138 links: 139 - polaris-server # 采集北极星性能 140 pushgateway: 141 container_name: polaris-pushgateway 142 image: prom/pushgateway:latest 143 hostname: polaris-pushgateway 144 restart: always 145 networks: 146 - backend 147 expose: 148 - 9091 149 grafana: 150 container_name: polaris-grafana 151 build: grafana 152 restart: always 153 ports: 154 - "3000:3000" 155 volumes: 156 - ./grafana/provisioning/:/etc/grafana/provisioning/:rw 157 - ./grafana/dashboards:/etc/grafana/dashboards/:rw 158 - ./grafana/grafana.ini:/etc/grafana/grafana.ini:rw 159 depends_on: 160 - prometheus 161 - pushgateway 162 networks: 163 - backend