fixed deploy
This commit is contained in:
parent
c46d5d8366
commit
6992bed13b
4 changed files with 7 additions and 36 deletions
|
@ -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
|
|
|
@ -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
|
Requires Docker
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker compose up --build -d
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
|
name: nginx-linkery
|
||||||
services:
|
services:
|
||||||
app:
|
client:
|
||||||
container_name: nginx-linkery
|
image: nginx
|
||||||
image: nginx-linkery
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
restart: always
|
|
||||||
ports:
|
ports:
|
||||||
- "9299:8080"
|
- 9299:80
|
||||||
|
volumes:
|
||||||
|
- ./site:/usr/share/nginx/html
|
||||||
|
|
22
nginx.conf
22
nginx.conf
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue