summaryrefslogtreecommitdiff
path: root/docker/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx')
-rw-r--r--docker/nginx/Dockerfile13
-rw-r--r--docker/nginx/nginx.conf11
-rw-r--r--docker/nginx/supervisord.conf9
3 files changed, 33 insertions, 0 deletions
diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile
new file mode 100644
index 0000000..9389b77
--- /dev/null
+++ b/docker/nginx/Dockerfile
@@ -0,0 +1,13 @@
+FROM debian:bullseye
+
+ENV DEBIAN_FRONTEND noninteractive
+
+RUN apt update
+RUN apt install -y nginx supervisor emacs-nox procps
+RUN apt clean
+
+COPY supervisord.conf /etc/supervisor/
+COPY nginx.conf /etc/nginx/sites-available/default
+
+ENTRYPOINT supervisord -c /etc/supervisor/supervisord.conf
+
diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf
new file mode 100644
index 0000000..a734b0e
--- /dev/null
+++ b/docker/nginx/nginx.conf
@@ -0,0 +1,11 @@
+server {
+ listen 80;
+ server_name _;
+
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log warn;
+
+ location / {
+ proxy_pass http://collector:8000;
+ }
+} \ No newline at end of file
diff --git a/docker/nginx/supervisord.conf b/docker/nginx/supervisord.conf
new file mode 100644
index 0000000..32656b7
--- /dev/null
+++ b/docker/nginx/supervisord.conf
@@ -0,0 +1,9 @@
+[supervisord]
+nodaemon=true
+
+[program:nginx]
+command=/usr/sbin/nginx -g "daemon off;"
+stdout_logfile=/dev/stdout
+stdout_logfile_maxbytes=0
+stderr_logfile=/dev/stderr
+stderr_logfile_maxbytes=0