Fix: Add nano and remove nginx.conf host-mount for Portainer compatibility
This commit is contained in:
parent
975d6ab90b
commit
fd770b61a2
|
|
@ -1,7 +1,7 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
# Install NGINX and tools
|
# 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
|
# Setup Nginx directories
|
||||||
RUN mkdir -p /run/nginx /var/cache/nginx
|
RUN mkdir -p /run/nginx /var/cache/nginx
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ services:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
volumes:
|
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
|
- ./conf.d:/etc/nginx/conf.d
|
||||||
- ./snippets:/etc/nginx/snippets
|
- ./snippets:/etc/nginx/snippets
|
||||||
- ./ssl:/etc/nginx/ssl
|
- ./ssl:/etc/nginx/ssl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue