diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6cc9a44 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM nginx:alpine + +COPY ./nginx.conf /etc/nginx/conf.d/default.conf + +COPY . /usr/share/nginx/html + +EXPOSE 8081 + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..77748ae --- /dev/null +++ b/compose.yaml @@ -0,0 +1,8 @@ +services: + portfolio: + build: + context: . + image: portfolio_website + expose: + - "8081" + restart: unless-stopped \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..026e9db --- /dev/null +++ b/nginx.conf @@ -0,0 +1,6 @@ +server { + listen 8081; + server_name localhost; + + root /usr/share/nginx/html; +} \ No newline at end of file