- changed volumes to be local to the repo

- added volumes/ dir in gitignore
This commit is contained in:
asus
2024-02-05 16:15:45 +01:00
parent 56a69c5520
commit f43de228c6
5 changed files with 24 additions and 21 deletions

View File

@@ -22,14 +22,14 @@ RUN adduser -S www-data && \
# ARG variables are not persistent after the build process, in opposite to ENV
ARG WP_URL
ARG MAX_UPLOAD_SIZE
ARG WP_VOLUME_DIR
ARG NG_VOLUME_CERTS
ARG SERVER_MAX_UPLOAD_SIZE
# replace WP_URL
RUN sed -i "s/\${WP_URL}/${WP_URL}/g" /etc/nginx/http.d/nginx_http_server.conf
# replace max file size upload
RUN sed -i "s/\(client_max_body_size \).*\(m;\)/\1${MAX_UPLOAD_SIZE}\2/g" /etc/nginx/nginx.conf
RUN sed -i "s/\(client_max_body_size \).*\(m;\)/\1${SERVER_MAX_UPLOAD_SIZE}\2/g" /etc/nginx/nginx.conf
# create ssl certificates
# command openssl :