diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8de467d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +# 使用 Nginx(流行的 Web 服务器)作为基础镜像 +FROM nginx:alpine + +# 将你的 index.html 复制到容器内的 Nginx Web 目录 +COPY index.html /usr/share/nginx/html/index.html + +# 告诉 Docker 容器在运行时监听 80 端口 +EXPOSE 80 \ No newline at end of file diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..6e8acef --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY . /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..708be10 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +services: + + minio: + image: minio/minio + container_name: cloud-minio + + volumes: + - ./data1:/data1 + - ./data2:/data2 + - ./data3:/data3 + - ./data4:/data4 + + ports: + - "9000:9000" + - "9001:9001" + + environment: + MINIO_ROOT_USER: admin + MINIO_ROOT_PASSWORD: password123 + + command: server /data{1...4} --console-address ":9001" + + mc: + image: minio/mc + container_name: cloud-mc + depends_on: + - minio + entrypoint: /bin/sh + tty: true diff --git a/index.html b/index.html index 8f814e4..c50aa07 100644 --- a/index.html +++ b/index.html @@ -2,15 +2,16 @@ - Cloud Computing Lab - @@ -19,11 +20,14 @@ width="100" alt="Actions Logo" class="cloud-logo"> -

Cloud-Native Deployment Success!

-

This site was deployed using GitHub Actions.

+

Welcome to Version 2.0

+

This is the upgraded version!.

● Site Status: Live

-

Student Name: Honglin Yuan

+

Student Name: Xu Kang

Current Cloud Provider: GitHub (Microsoft Azure Infrastructure)

+ GitHub Logo