Skip to content

Commit 4b8f29c

Browse files
committed
Add /etc/nginx/conf.d to volumes
Useful when adding .htpasswd for basic auth
1 parent 6bfe874 commit 4b8f29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
chown -R www-data:www-data /var/lib/nginx
1717

1818
# Define mountable directories.
19-
VOLUME ["/data", "/etc/nginx/sites-enabled", "/var/log/nginx"]
19+
VOLUME ["/data", "/etc/nginx/sites-enabled", "/etc/nginx/conf.d", "/var/log/nginx"]
2020

2121
# Define working directory.
2222
WORKDIR /etc/nginx

0 commit comments

Comments
 (0)