diff options
author | Andrew Dolgov <[email protected]> | 2023-03-25 22:41:47 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-03-25 22:41:47 +0300 |
commit | 723323d7462954a262368d621811a045710cd1ed (patch) | |
tree | d1c4031e09d11d8af9e39def52ad743c35084a45 /.docker/web-nginx/Dockerfile | |
parent | d305532bcef91061c39db13872d44c4f859054b7 (diff) |
add gitea-CI docker builder
Diffstat (limited to '.docker/web-nginx/Dockerfile')
-rw-r--r-- | .docker/web-nginx/Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.docker/web-nginx/Dockerfile b/.docker/web-nginx/Dockerfile new file mode 100644 index 000000000..49b1232b4 --- /dev/null +++ b/.docker/web-nginx/Dockerfile @@ -0,0 +1,15 @@ +FROM registry.fakecake.org/nginx:alpine + +HEALTHCHECK CMD curl --fail http://localhost/tt-rss/index.php || exit 1 + +COPY nginx.conf /etc/nginx/templates/nginx.conf.template + +# 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} + +# 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 |