Fix: Add nano and remove nginx.conf host-mount for Portainer compatibility

This commit is contained in:
João Pedro Toledo Goncalves 2026-01-27 14:14:33 -03:00
parent 975d6ab90b
commit fd770b61a2
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
FROM alpine:latest
# Install NGINX and tools
RUN apk add --no-cache nginx nginx-mod-http-brotli nginx-mod-http-headers-more bind-tools openssl curl bash certbot git
RUN apk add --no-cache nginx nginx-mod-http-brotli nginx-mod-http-headers-more bind-tools openssl curl bash certbot git nano
# Setup Nginx directories
RUN mkdir -p /run/nginx /var/cache/nginx

View File

@ -8,7 +8,7 @@ services:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
#- ./nginx.conf:/etc/nginx/nginx.conf # Removed to avoid file-mount errors in Portainer
- ./conf.d:/etc/nginx/conf.d
- ./snippets:/etc/nginx/snippets
- ./ssl:/etc/nginx/ssl