version: ‘3’
services:
zentao:
image: easysoft/zentao:12.5.3
restart: always
ports:
- 7080:80
volumes:
- /home/winbull/data/zentao:/www/zentaopms
environment:
- MYSQL_ROOT_PASSWORD=123456
mysql:
image: mysql:8.0.19
command: —default-authentication-plugin=mysql_native_password
restart: always
volumes:
- /home/winbull/data/mysql:/var/lib/mysql
ports:
- “3306:3306”
environment:
MYSQL_ROOT_PASSWORD: 123456
portainer:
image: portainer/portainer
container_name: portainer
restart: always
ports:
- “9000:9000”
- “8000:8000”
volumes:
- /run/docker.sock:/var/run/docker.sock
rancher:
image: rancher/rancher:v2.5.9
restart: always
privileged: true
ports:
- 80:80
- 443:443
volumes:
- ./data/rancher/auditlog:/var/log/auditlog
- ./data/rancher/data:/var/lib/rancher
elasticsearch:
image: elasticsearch:7.8.0
restart: always
container_name: elasticsearch
volumes:
- ./data/es/data:/usr/share/elasticsearch/data
- ./data/es/logs:/usr/share/elasticsearch/logs
- ./config/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./config/es/jvm.options:/usr/share/elasticsearch/config/jvm.options
environment:
- cluster.name=elasticsearch
- discovery.type=single-node
ports:
- “9200:9200”
- “9300:9300”
kibana:
image: kibana:7.8.0
restart: always
container_name: kibana
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://elasticsearch:9200
ports:
- “5601:5601”
links:
- elasticsearch
skywalking-oap:
image: apache/skywalking-oap-server:8.6.0-es7
restart: always
container_name: skywalking-oap
depends_on:
- elasticsearch
links:
- elasticsearch
ports:
- 11800:11800
- 12800:12800
environment:
- SW_STORAGE=elasticsearch7 #Es的存储,以前直接写elasticsearch,新版本一定要查上版本号即elasticsearch7
- SW_STORAGE_ES_CLUSTER_NODES=elasticsearch:9200 # Es的节点地址,从.env文件中取
- TZ=Asia/Shanghai #设定东八区的城市,防止Oap记录数据时用0时区
- SW_STORAGE_ES_BULK_ACTIONS=4000
- SW_STORAGE_ES_BULK_SIZE=40
- SW_STORAGE_ES_FLUSH_INTERVAL=30
- SW_STORAGE_ES_CONCURRENT_REQUESTS=4
- SW_STORAGE_ES_QUERY_MAX_SIZE=8000
- SW_STORAGE_ES_RECORD_DATA_TTL=3
- SW_STORAGE_ES_OTHER_METRIC_DATA_TTL=7
- SW_STORAGE_ES_MONTH_METRIC_DATA_TTL=1
skywalking-ui:
image: apache/skywalking-ui:8.6.0
restart: always
container_name: skywalking-ui
depends_on:
- skywalking-oap
links:
- skywalking-oap
ports:
- 18080:8080 #默认8080端口,这里设置18080映射到宿主机,可修改
environment:
collector.ribbon.listOfServers: skywalking-oap:12800