Docker image required files

This commit is contained in:
shockrah 2023-02-10 21:29:50 -08:00
parent 1170e879f0
commit 203ec7f434
4 changed files with 56 additions and 0 deletions

2
.gitignore vendored
View File

@ -15,3 +15,5 @@ playbooks/alpha/searx/settings.yml
playbooks/beta/vars/*.yml playbooks/beta/vars/*.yml
playbooks/env/ playbooks/env/
playbooks/beta/files/*.pub playbooks/beta/files/*.pub
docker/beta/shockrah.xyz/

5
docker/beta/Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM nginx
ARG SRC
RUN mkdir -p /var/www/blog.shockrah.xyz
COPY shockrah.xyz /var/www/blog.shockrah.xyz
COPY nginx.conf /etc/nginx/nginx.conf

48
docker/beta/nginx.conf Normal file
View File

@ -0,0 +1,48 @@
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;
# This logging is way overkill and not at all permanent
# Just for debugging for now
log_format main '$host $remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
# Testing blog routing
server {
server_name "blog.shockrah.xyz";
location / {
return 200 'Visiting blog.shockrah.xyz';
root /var/www/blog.shockrah.xyz;
}
}
server {
server_name "wiki.shockrah.xyz";
location / {
return 200 'Reading wiki.shockrah.xyz';
}
}
}

1
docker/readme Normal file
View File

@ -0,0 +1 @@
This folder contains docker images that live in ECR