Add docker deployment

main
shruub 1 year ago
parent aa980955a5
commit 5bbe495e82
Signed by: shruub
GPG Key ID: B150E03645A3F44A

@ -0,0 +1,13 @@
version: "3"
services:
webserver:
image: nginx:latest
container_name: blackscreen-nginx
restart: unless-stopped
volumes:
- ./:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
default:
name: npm
external: true

@ -0,0 +1,34 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
server {
listen 80;
location / {
proxy_intercept_errors on;
error_page 400 500 404 /;
}
}
include /etc/nginx/conf.d/*.conf;
}
Loading…
Cancel
Save