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