1
1
Fork 0

fixed deploy

This commit is contained in:
Ava Gaiety W. 2025-03-07 23:15:55 +00:00
parent c46d5d8366
commit 6992bed13b
4 changed files with 7 additions and 36 deletions

View file

@ -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

View file

@ -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
```

View file

@ -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

View file

@ -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;
}
}