From 6179fb1da1d6e70de90bdd59eeca10fa0fe28740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=BB=BA=E4=B8=9C?= <617601767@qq.com> Date: Thu, 14 Mar 2024 14:36:15 +0800 Subject: [PATCH] 1 --- ZKLT.sln | 1 + docker-compose/hadoop.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docker-compose/hadoop.yml diff --git a/ZKLT.sln b/ZKLT.sln index 375db1a..3c10bb7 100644 --- a/ZKLT.sln +++ b/ZKLT.sln @@ -15,6 +15,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZKLT.Hadoop.API", "Hadoop\Z EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker-compose", "docker-compose", "{1E26F2C2-6BCB-4E5D-ADC5-C6AD923155F9}" ProjectSection(SolutionItems) = preProject + docker-compose\hadoop.yml = docker-compose\hadoop.yml docker-compose\mysql.yml = docker-compose\mysql.yml EndProjectSection EndProject diff --git a/docker-compose/hadoop.yml b/docker-compose/hadoop.yml new file mode 100644 index 0000000..691059b --- /dev/null +++ b/docker-compose/hadoop.yml @@ -0,0 +1,18 @@ +version: '3' +services: + hadoop: + restart: always + image: hadoop:latest + container_name: hadoop + # volumes: + # - /apps/mysql/mydir:/mydir + # - /apps/mysql/datadir:/var/lib/mysql + # - /apps/mysql/conf/my.cnf:/etc/my.cnf + # # 数据库还原目录 可将需要还原的sql文件放在这里 + # - /apps/mysql/source:/docker-entrypoint-initdb.d + environment: + - "TZ=Asia/Shanghai" + ports: + # 使用宿主机的3306端口映射到容器的3306端口 + # 宿主机:容器 + - 5000:8080 \ No newline at end of file