modified: .gitignore

new file:   Dockerfile.certbot
	new file:   Dockerfile.nginx
	new file:   Makefile
	new file:   compose.certbot.yml
	new file:   docker-compose.yml
	new file:   entrypoint-certbot.sh
	new file:   entrypoint-nginx.sh
	new file:   nginx-gitea.conf.template
	new file:   nginx.conf.template
This commit is contained in:
viljarb
2026-03-31 13:25:18 +02:00
parent ebfbce7cd2
commit 28212b9d5d
10 changed files with 272 additions and 0 deletions

27
Dockerfile.nginx Normal file
View File

@@ -0,0 +1,27 @@
FROM nginx:alpine
ARG DOMAIN
ARG EMAIL
ARG GITEA_DOMAIN
ENV DOMAIN=${DOMAIN}
ENV EMAIL=${EMAIL}
ENV GITEA_DOMAIN=${GITEA_DOMAIN}
# Install gettext (for envsubst) and openssl
RUN apk add --no-cache gettext openssl
# Copy nginx config templates (generated at runtime with envsubst)
COPY nginx.conf.template /etc/nginx/nginx.conf.template
COPY nginx-gitea.conf.template /etc/nginx/nginx-gitea.conf.template
# Copy HTML content
COPY html /usr/share/nginx/html
# Copy and set up entrypoint
COPY entrypoint-nginx.sh /entrypoint-nginx.sh
RUN chmod +x /entrypoint-nginx.sh
EXPOSE 80 443
ENTRYPOINT ["/entrypoint-nginx.sh"]
CMD ["nginx", "-g", "daemon off;"]