diff --git a/README.md b/README.md
index 8b3b712..5ff476b 100644
--- a/README.md
+++ b/README.md
@@ -1,59 +1,56 @@
-# Portainer
+# Wordpress
## Description
-This docker compose run portainer on docker
+This docker compose run wordpress on docker
## Requierments
### Folder
```bash
-sudo mkdir -p /home/docker/portainer/data
+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
```bash
docker compose up -d
```
-## Config
-By default the lifetime of the password is 8 hours. For modify goto **Settings** -> **Authentication**
-The maximum lifetime is 1 year
-
-## Reset admin password
-```bash
-docker container stop portainer
-docker run --rm -v /home/docker/portainer/data:/data portainer/helper-reset-password
-...
-2024/11/15 21:22:13 Password successfully updated for user: admin
-2024/11/15 21:22:13 Use the following password to login: 9fB1`%r50ZVH:(XutQqm#M<_LE387,w2
-```
+## DB
+The base DB is ready
## Apache
-### http-portainer.conf
+### http-wp-dev.conf
```
- ServerName portainer.gmotech.net
- ServerAlias portainer
- CustomLog logs/portainer_access_log common
- ErrorLog logs/portainer_error_log
+ 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} =portainer [OR]
- RewriteCond %{SERVER_NAME} =portainer.gmotech.net
+ RewriteCond %{SERVER_NAME} =wp-dev [OR]
+ RewriteCond %{SERVER_NAME} =wp-devp.gmolab.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
```
-### https-portainer.conf
+### https-wp-dev.conf
```
##
## SSL Virtual Host Context
##
# General setup for the virtual host
- ServerName portainer.gmotech.net
- ServerAlias portainer
- CustomLog logs/portainer_access_log common
- ErrorLog logs/portainer_error_log
+ ServerName wp-dev.gmolab.net
+ ServerAlias wp-dev
+ CustomLog logs/wp-dev_access_log common
+ ErrorLog logs/wp-dev_error_log
# SSL
SSLEngine on
@@ -66,32 +63,22 @@ docker run --rm -v /home/docker/portainer/data:/data portainer/helper-reset-pass
# 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/gmotech.net.crt"
- SSLCertificateKeyFile "/etc/httpd/auth/cert/gmotech.net.key"
- SSLCertificateChainFile "/etc/httpd/auth/cert/gmotechCA.crt"
+ 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:9000/"
- ProxyPassReverse "/" "https://127.0.0.1:9000/"
+ ProxyPass "/" "http://127.0.0.1:8080/"
+ ProxyPassReverse "/" "https://127.0.0.1:8080/"
```
## Access
-https://portainer.gmotech.net
+https://wp-dev.gmolab.net
-## Change Session lifetime
-To TEST !! (one year)
-## Sources
-https://omar2cloud.github.io/rasp/psswd/
-https://docs.portainer.io/admin/settings/authentication
-### Changelog
-### [1.0.1] - 2025-08-23
-#### Added
-- config behind a proxy or not
----
-### [1.0.0] - 2024-11-11
+### [1.0.0] - 2026-02-06
#### Added
- initial version by [GMo](mailto:gilles.mouchet@gmail.com)
diff --git a/script.sh b/script.sh
index 232130f..0c4d2b4 100755
--- a/script.sh
+++ b/script.sh
@@ -46,7 +46,7 @@ Usage: $scriptName
Options:
-a|--all stop docker compose, delete container and delete files in /home/docker/${root_app}
- -e|--env environment (gmolab or vdglab)
+ -b|--bash Ouverture d'un shell 'root' dans le conteneur 'PHP-FPM'
-s|--stop stop docker compose
-u|--up start docker compose as daemon
-c|--console start docker compose as console
@@ -79,7 +79,6 @@ if [ -z "$1" ]; then
exit
fi
-
while [[ "$#" -gt 0 ]]; do
case "$1" in
-a|--all)
@@ -99,7 +98,10 @@ while [[ "$#" -gt 0 ]]; do
docker compose up -d
exit
;;
- -s|stop)
+ -b|--bash)
+ docker exec --user root -it wp-site /bin/bash
+ ;;
+ -s|--stop)
docker compose stop
;;
-u|--up)