change port
This commit is contained in:
8
DockerFile.txt
Normal file
8
DockerFile.txt
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user