change port

This commit is contained in:
2026-02-05 13:25:32 +08:00
parent 7079381191
commit 65ca2c97eb
2 changed files with 15 additions and 5 deletions

8
DockerFile.txt Normal file
View File

@@ -0,0 +1,8 @@
# Use the lightweight Nginx image
FROM nginx:alpine
# Copy all files from your Git repo into the web server directory
COPY ./html/ /usr/share/nginx/html/
# Expose port 80
EXPOSE 80

View File

@@ -1,9 +1,11 @@
version: '3'
version: '3.8'
services:
web:
image: nginx:alpine
web-site:
build:
context: .
dockerfile: Dockerfile
container_name: simple-centered-site
ports:
- "8888:80"
volumes:
- ./html:/usr/share/nginx/html/
restart: always