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:
|
services:
|
||||||
web:
|
web-site:
|
||||||
image: nginx:alpine
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: simple-centered-site
|
||||||
ports:
|
ports:
|
||||||
- "8888:80"
|
- "8888:80"
|
||||||
volumes:
|
|
||||||
- ./html:/usr/share/nginx/html/
|
|
||||||
restart: always
|
restart: always
|
||||||
Reference in New Issue
Block a user