代码拉取完成,页面将自动刷新
version: '3'
services:
mysql-test:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/mysql-test:5.7
restart: always
container_name: mysql-test
hostname: mysql-test
environment:
MYSQL_ROOT_PASSWORD: 123456
TZ: Asia/Shanghai
ports:
- 3306:3306
volumes:
- ./data:/var/lib/mysql
- ./conf/my.cnf:/etc/mysql/my.cnf
command:
--max_connections=1000
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD-SHELL", "curl --silent localhost:3306 >/dev/null || exit 1"]
interval: 10s
timeout: 10s
retries: 3
httpd:
container_name: httpd
hostname: httpd
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/httpd:latest
ports:
- "18080:80"
privileged: true
restart: always
volumes:
- "./packages/ambari/:/usr/local/apache2/htdocs/"
ambari-server:
image: registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/ambari:2.7.5.0
container_name: ambari-server
hostname: ambari-server
restart: always
privileged: true
network_mode: "host"
volumes:
- /etc/hosts:/etc/hosts
depends_on:
- mysql-test
- httpd
command: ["sh","-c","/opt/apache/bootstrap.sh"]
healthcheck:
test: ["CMD-SHELL", "netstat -tnlp|grep :8080 || exit 1"]
interval: 10s
timeout: 10s
retries: 8
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。