correction image wp

This commit is contained in:
Arno 2024-10-23 13:36:49 +00:00
parent 82a4442472
commit e9bc584efa
4 changed files with 8 additions and 5 deletions

View File

@ -9,13 +9,14 @@ RUN chmod +x /usr/local/bin/wp
# Configuration apache # Configuration apache
RUN cd /app/public RUN cd /app/public
COPY apache.conf /etc/apache2/conf.d/zapp.conf COPY apache.conf /etc/apache2/conf.d/nine/site.conf
# Installation des sources wordpress # Installation des sources wordpress
RUN wp core download --path=/app/public --locale=fr_FR RUN wp core download --path=/app/public --locale=fr_FR
RUN chown -R apache:apache /app/public RUN chown -R apache:apache /app/public
RUN find /app/public -type d -exec chmod 755 {} + RUN chmod -R u=rwX,g=rX,o=rX /app/public
RUN find /app/public -type f -exec chmod 644 {} + #RUN find /app/public -type d -exec chmod 755 {} +
#RUN find /app/public -type f -exec chmod 644 {} +
RUN mkdir /docker RUN mkdir /docker
COPY entrypoint.sh /docker/entrypoint.sh COPY entrypoint.sh /docker/entrypoint.sh

View File

@ -2,6 +2,7 @@ LoadModule rewrite_module modules/mod_rewrite.so
ServerName nineapache.local ServerName nineapache.local
DocumentRoot "/app/public" DocumentRoot "/app/public"
Alias /wordpress /app/public Alias /wordpress /app/public
LogLevel alert rewrite:trace3
<Directory "/app/public"> <Directory "/app/public">
Options FollowSymLinks Options FollowSymLinks
AllowOverride Limit Options FileInfo AllowOverride Limit Options FileInfo
@ -13,7 +14,7 @@ Alias /wordpress /app/public
RewriteEngine On RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /wordpress/ RewriteBase /
RewriteRule ^index\.php$ - [L] RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin # add a trailing slash to /wp-admin

View File

@ -2,4 +2,3 @@
# wordpress # wordpress
ProxyPass /wordpress http://wordpress/wordpress retry=0 keepalive=On ProxyPass /wordpress http://wordpress/wordpress retry=0 keepalive=On
ProxyPassReverse /wordpress http://wordpress/wordpress retry=0 ProxyPassReverse /wordpress http://wordpress/wordpress retry=0

View File

@ -11,3 +11,5 @@ services:
- nine-network - nine-network
volumes: volumes:
- ./services/50-wordpress/volume/data:/app/public/wp-content - ./services/50-wordpress/volume/data:/app/public/wp-content
ports:
- "8080:80"