wordpress works now with :
+ volumes in mariadb container + db pswd in quotes + somes other settings
This commit is contained in:
@@ -1,42 +1,43 @@
|
||||
# debian (~ 180s) --------------------------------------------
|
||||
|
||||
FROM debian:buster
|
||||
|
||||
# vim for debug
|
||||
RUN apt update && apt install -y \
|
||||
nginx openssl \
|
||||
vim \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# nginx conf
|
||||
COPY ./conf/nginx.conf.debian /etc/nginx/nginx.conf
|
||||
COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
|
||||
# FROM debian:buster
|
||||
#
|
||||
# # vim for debug
|
||||
# RUN apt update && apt install -y \
|
||||
# nginx openssl \
|
||||
# vim \
|
||||
# && \
|
||||
# rm -rf /var/lib/apt/lists/*
|
||||
#
|
||||
# # nginx conf
|
||||
# COPY ./conf/nginx.conf.debian /etc/nginx/nginx.conf
|
||||
# COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
|
||||
|
||||
# alpine (~ 45s) ---------------------------------------------
|
||||
|
||||
# FROM alpine:3.15
|
||||
#
|
||||
# # vim and bash for debug
|
||||
# RUN apk update && apk add \
|
||||
# nginx openssl \
|
||||
# vim bash \
|
||||
# && \
|
||||
# rm -rf /var/cache/apk*
|
||||
#
|
||||
# # nginx conf
|
||||
# COPY ./conf/nginx.conf.alpine /etc/nginx/nginx.conf
|
||||
# COPY ./conf/inception_nginx.conf /etc/nginx/http.d/
|
||||
#
|
||||
# # create user www-data and assign it to group www-data
|
||||
# RUN adduser -S www-data && \
|
||||
# adduser www-data www-data
|
||||
#
|
||||
# RUN mkdir -p /var/www/html
|
||||
FROM alpine:3.15
|
||||
|
||||
# vim and bash for debug
|
||||
RUN apk update && apk add \
|
||||
nginx openssl \
|
||||
vim bash \
|
||||
&& \
|
||||
rm -rf /var/cache/apk*
|
||||
|
||||
# nginx conf
|
||||
COPY ./conf/nginx.conf.alpine /etc/nginx/nginx.conf
|
||||
COPY ./conf/inception_nginx.conf /etc/nginx/http.d/
|
||||
|
||||
# create user www-data and assign it to group www-data
|
||||
RUN adduser -S www-data && \
|
||||
adduser www-data www-data
|
||||
|
||||
RUN mkdir -p /var/www/html
|
||||
|
||||
# common -----------------------------------------------------
|
||||
|
||||
RUN rm -rf /var/www/html/*
|
||||
# empty /var/www/html folder to avoid it to rewrite volume
|
||||
#RUN rm -rf /var/www/html/*
|
||||
|
||||
# personalized index.html
|
||||
COPY ./conf/index.html /data/www/
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
# user :
|
||||
# < user www-data
|
||||
# > user nginx
|
||||
#
|
||||
# protocols :
|
||||
#
|
||||
# < ssl_protocols TLSv1.2 TLSv1.3;
|
||||
# > ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
|
||||
# /etc/nginx/nginx.conf
|
||||
|
||||
@@ -59,7 +64,7 @@ http {
|
||||
|
||||
# Enables the specified protocols. Default is TLSv1 TLSv1.1 TLSv1.2.
|
||||
# TIP: If you're not obligated to support ancient clients, remove TLSv1.1.
|
||||
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
|
||||
# Path of the file with Diffie-Hellman parameters for EDH ciphers.
|
||||
# TIP: Generate with: `openssl dhparam -out /etc/ssl/nginx/dh2048.pem 2048`
|
||||
|
||||
Reference in New Issue
Block a user