2026-02-07 08:49:14 +01:00
2026-02-04 05:43:09 +01:00
2026-02-04 05:43:09 +01:00
2026-02-04 16:27:48 +01:00
2026-02-04 05:43:09 +01:00
2026-02-04 16:27:48 +01:00
2026-02-04 05:43:09 +01:00
2026-02-04 05:43:09 +01:00
2026-02-04 16:27:48 +01:00
2026-02-04 16:27:48 +01:00
2026-02-07 08:49:14 +01:00
2026-02-04 05:43:09 +01:00
2026-02-06 16:52:01 +01:00
2026-02-07 08:49:14 +01:00
2026-02-04 16:27:48 +01:00
2026-02-04 05:43:09 +01:00

Wordpress

Description

This docker compose run wordpress on docker

Requierments

Folder

sudo mkdir -p /home/docker/wp/wp-site
sudo mkdir -p /home/docker/wp/wp-db

Certificats

Copy crt and key files on /home/docker/certs/

Env file

DB

Dans le script modifier le sql en fonction de l'environnement A faire

Run

docker compose up -d

DB

The base DB is ready

Apache

http-wp-dev.conf

<VirtualHost *:80>
    ServerName wp-dev.gmolab.net
    ServerAlias wp-dev
    CustomLog logs/wp-dev_access_log common
    ErrorLog  logs/wp-dev_error_log
    # redirect to https
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =wp-dev [OR]
    RewriteCond %{SERVER_NAME} =wp-devp.gmolab.net
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

https-wp-dev.conf

##
## SSL Virtual Host Context
##
#  General setup for the virtual host
<VirtualHost *:443>
    ServerName wp-dev.gmolab.net
    ServerAlias wp-dev
    CustomLog logs/wp-dev_access_log common
    ErrorLog  logs/wp-dev_error_log

# SSL
    SSLEngine on
    SSLHonorCipherOrder on
    SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
    SSLHonorCipherOrder on
    SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4
    # Enable HTTP/2, if available
    Protocols h2 http/1.1
    # HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
    Header always set Strict-Transport-Security "max-age=63072000"
# certificats
    SSLCertificateFile "/etc/httpd/auth/cert/gmolab.net.crt"
    SSLCertificateKeyFile "/etc/httpd/auth/cert/gmolab.net.key"
    SSLCertificateChainFile "/etc/httpd/auth/cert/gmolabCA.crt"
# proxy
    SSLProxyEngine On
    ProxyPreserveHost On
    ProxyRequests off
    ProxyPass "/" "http://127.0.0.1:8080/"
    ProxyPassReverse "/" "https://127.0.0.1:8080/"
</VirtualHost>

Access

https://wp-dev.gmolab.net

[1.0.0] - 2026-02-06

Added

  • initial version by GMo
Description
No description provided
Readme 862 KiB
Languages
Shell 100%