diff --git a/DockerFile.txt b/DockerFile.txt new file mode 100644 index 0000000..74ace87 --- /dev/null +++ b/DockerFile.txt @@ -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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 41975a9..6355cbf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file