2 Star 2 Fork 3

大数据老司机/docker-compose-ambari

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yaml 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
liugp 提交于 2023-06-17 14:47 . init
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/hadoop-bigdata/docker-compose-ambari.git
git@gitee.com:hadoop-bigdata/docker-compose-ambari.git
hadoop-bigdata
docker-compose-ambari
docker-compose-ambari
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385