2023-10-19 15:18:21 +00:00
|
|
|
ARG PROXY_REGISTRY
|
|
|
|
FROM ${PROXY_REGISTRY}nginx:alpine
|
2023-03-25 19:41:47 +00:00
|
|
|
|
2024-01-19 16:19:07 +00:00
|
|
|
HEALTHCHECK CMD curl --fail http://localhost${APP_BASE}/index.php || exit 1
|
2023-03-25 19:41:47 +00:00
|
|
|
|
2023-10-19 06:47:01 +00:00
|
|
|
COPY .docker/web-nginx/nginx.conf /etc/nginx/templates/nginx.conf.template
|
2023-03-25 19:41:47 +00:00
|
|
|
|
|
|
|
# By default, nginx will send the php requests to "app" server, but this server
|
|
|
|
# name can be overridden at runtime by passing an APP_UPSTREAM env var
|
|
|
|
ENV APP_UPSTREAM=${APP_UPSTREAM:-app}
|
|
|
|
|
2023-07-28 18:23:57 +00:00
|
|
|
# Webroot (defaults to /var/www/html)
|
|
|
|
ENV APP_WEB_ROOT=${APP_WEB_ROOT:-/var/www/html}
|
|
|
|
|
|
|
|
# Base location for tt-rss (defaults to /tt-rss)
|
|
|
|
ENV APP_BASE=${APP_BASE:-/tt-rss}
|
|
|
|
|
2023-11-07 05:38:11 +00:00
|
|
|
# Resolver for nginx (kube-dns.kube-system.svc.cluster.local for k8s)
|
|
|
|
ENV RESOLVER=${RESOLVER:-127.0.0.11}
|
|
|
|
|
2023-07-28 18:23:57 +00:00
|
|
|
# In order to make tt-rss appear on website root without /tt-rss/ set above as follows in .env:
|
|
|
|
# APP_WEB_ROOT=/var/www/html/tt-rss
|
|
|
|
# APP_BASE=
|
|
|
|
|
2023-03-25 19:41:47 +00:00
|
|
|
# It's necessary to set the following NGINX_ENVSUBST_OUTPUT_DIR env var to tell
|
|
|
|
# nginx to replace the env vars of /etc/nginx/templates/nginx.conf.template
|
|
|
|
# and put the result in /etc/nginx/nginx.conf (instead of /etc/nginx/conf.d/nginx.conf)
|
|
|
|
# See https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119
|
|
|
|
ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
|