- Add Dockerfile using nginx:alpine base image - Add docker-compose.yml for easy container management - Add nginx.conf with minimal configuration and gzip compression - Service renamed to 'ui' for better naming convention
17 lines
308 B
Nginx Configuration File
17 lines
308 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# Enable gzip compression
|
|
gzip on;
|
|
gzip_types text/html text/css application/javascript;
|
|
gzip_min_length 1000;
|
|
}
|
|
|