diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index ff57920..0000000 --- a/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -# serve static files with local nginx config -FROM nginx:alpine -WORKDIR /app -COPY . /site -COPY ./nginx.conf /etc/nginx/nginx.conf diff --git a/README.md b/README.md index 8f17c69..10927b9 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ yep it's basic as hell, it doesn't even compile. it's just a html site paw-coded Requires Docker ```sh -docker compose up --build -d +docker compose up ``` diff --git a/docker-compose.yml b/docker-compose.yml index 331151d..4e773d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,8 @@ +name: nginx-linkery services: - app: - container_name: nginx-linkery - image: nginx-linkery - build: - context: . - dockerfile: Dockerfile - restart: always + client: + image: nginx ports: - - "9299:8080" + - 9299:80 + volumes: + - ./site:/usr/share/nginx/html diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index afec279..0000000 --- a/nginx.conf +++ /dev/null @@ -1,22 +0,0 @@ -events { - worker_connections 1024; -} - -http { - include mime.types; - sendfile on; - - server { - listen 8080; - listen [::]:8080; - - resolver 127.0.0.11; - autoindex off; - - server_name _; - server_tokens off; - - root /app; - gzip_static on; - } -}