chore: dockerization

This commit is contained in:
2026-06-11 10:24:50 +02:00
parent 3e977f7bcb
commit 8d5d7eb81a
4 changed files with 56 additions and 0 deletions

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
version: "3"
services:
nginx:
image: nginx:alpine
ports:
- "88:80"
restart: always
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/usr/share/nginx/html

36
nginx.conf Normal file
View File

@@ -0,0 +1,36 @@
charset utf-8;
tcp_nopush on;
tcp_nodelay off;
client_header_timeout 10s;
client_body_timeout 10s;
client_max_body_size 20M;
reset_timedout_connection on;
gzip on;
gzip_types
text/css
text/javascript
text/xml
text/plain
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
application/atom+xml
font/truetype
font/opentype
image/svg+xml;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
# To make sure any assets can get through :)
location / {
try_files $uri /index.html;
}
}

5
start.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
set -xe
# launch docker
docker compose up -d

4
stop.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -xe
docker compose down