Bläddra i källkod

restore typo3 docker and minor fixes

Olivier Massot 4 år sedan
förälder
incheckning
3e44906cd8

+ 1 - 1
.env.skeleton

@@ -32,7 +32,7 @@ ADMIN2_REPORT_PORT=3003
 PORTAIL_VIRTUAL_HOST=local.opentalent.fr
 
 #Typo3
-TYPO3_VIRTUAL_HOST=local.sub-opentalent.fr
+TYPO3_VIRTUAL_HOST=local.sub.opentalent.fr
 
 #V59
 V59_VIRTUAL_HOST=local.v59.opentalent.fr

+ 3 - 3
README

@@ -11,8 +11,8 @@ recopier (ne pas le supprimer !!) le fichier .env.skeleton en .env
 adapter le contenu par rapport à votre config...
 
 =========== Générer les contrats SSL   ============
-rendre éxécutable le fichier de génération de clé : chmod +x docker/nginx/certs/ssl_keys.sh
-lancé (au même niveau que le README) la commande : ./docker/nginx/certs/ssl_keys.sh
+rendre éxécutable le fichier de génération de clé : chmod +x docker/nginx-proxy/certs/ssl_keys.sh
+lancé (au même niveau que le README) la commande : ./docker/nginx-proxy/certs/ssl_keys.sh
 
 docker-compose build
 docker-compose up
@@ -118,4 +118,4 @@ cliquer n'importe où sur la page et taper le mot qui s'est afficher dans la con
 ========== Pour créer la PHP DOC de l'API ====================
 docker run --rm -v /opt/opentalent/apps/api/src/:/data -v /opt/opentalent/apps/apidoc:/output phpdoc/phpdoc:3.1 -d /data -t /output
 se rendre ensuite sur http://local.api-doc.opentalent.fr
-========== Pour créer la PHP DOC de l'API ====================
+========== Pour créer la PHP DOC de l'API ====================

+ 0 - 0
clonedb/.gitkeep


+ 2 - 2
docker-compose.yaml

@@ -109,7 +109,7 @@ services:
       # Version Symfony 5
       - appdata5:/var/www/html/var/cache/
       - appdata5:/var/www/html/var/logs/
-      # ATTENTION : LES VENDROS SONT DELEGUES AU CONTAINER : AUCUNE MODIF FAITES SUR LA MACHINE HOST NE SERA REPLIQUE SUR
+      # ATTENTION : LES VENDORS SONT DELEGUES AU CONTAINER : AUCUNE MODIF FAITES SUR LA MACHINE HOST NE SERA REPLIQUE SUR
       # LE CONTAINER ET VICE ET VERSA, mettre en com la ligne pour modifier et décommenter ./apps/api/New/vendor:/var/www/html/vendor:delegated.
 #      - appVendor5:/var/www/html/vendor/
       # A l'inverse, les vendors seront surtout modifiés dans le container
@@ -337,4 +337,4 @@ volumes:
   appdata5: ~
   appVendor5: ~
   adminBower: ~
-  adminNode: ~
+  adminNode: ~

+ 1 - 1
docker/php/conf/xdebug.ini

@@ -9,7 +9,7 @@ xdebug.remote_port = 9000
 xdebug.max_nesting_level=400
 
 # Uncomment this line if docker is running on Mac or Windows
-;xdebug.remote_host = host.docker.internal
+# xdebug.remote_host = host.docker.internal
 
 # OR uncomment this one if docker is on Unix, then replace the hostname
 #    by the your current machine's name (type 'hostname' in a terminal)

+ 2 - 0
docker/typo3/Dockerfile

@@ -41,6 +41,7 @@ RUN \
     locale-gen; \
 
     # Configure apache
+    a2enmod alias authz_core autoindex deflate expires filter headers rewrite setenvif; \
     rm /etc/apache2/sites-available/000-default.conf && rm /etc/apache2/sites-available/default-ssl.conf; \
     a2ensite typo3; \
     service apache2 restart;
@@ -54,3 +55,4 @@ ENV LC_ALL fr_FR.UTF-8
 COPY ./docker/typo3/entrypoint.sh /entrypoint.sh
 RUN chmod +x /entrypoint.sh
 ENTRYPOINT ["/entrypoint.sh"]
+

+ 0 - 0
docker/typo3/conf/LocalConfiguration.php


+ 3 - 1
docker/typo3/conf/memory.ini

@@ -1 +1,3 @@
-memory_limit=4096M
+memory_limit=4096M
+max_input_vars=1500
+max_execution_time=240

+ 2 - 2
docker/typo3/conf/typo3.conf

@@ -2,8 +2,8 @@
     ServerName local.sub.opentalent.fr
 	DocumentRoot /var/www/typo3/public
 
-	ErrorLog ${APACHE_LOG_DIR}/typo3-error.log
-	CustomLog ${APACHE_LOG_DIR}/typo3-access.log combined
+	#ErrorLog ${APACHE_LOG_DIR}/typo3-error.log
+	#CustomLog ${APACHE_LOG_DIR}/typo3-access.log combined
 
     <Directory /var/www/typo3/public>
         Options Indexes FollowSymLinks

+ 10 - 4
docker/typo3/entrypoint.sh

@@ -3,24 +3,30 @@
 # Prepare
 cd /var/www/typo3
 mv /var/www/composer.phar /var/www/typo3/composer.phar
-ln -s /var/opentalent/git/ot_typo3/install/composer.json /var/www/typo3/composer.json
+ln -s /var/opentalent/git/ot_typo3/docker/conf/composer.json /var/www/typo3/composer.json
 
 # Install Typo3 and extensions
 php composer.phar install
+ln -s /var/opentalent/git/ot_typo3/ot_core /var/www/typo3/public/typo3conf/ext/ot_core
 ln -s /var/opentalent/git/ot_typo3/ot_templating /var/www/typo3/public/typo3conf/ext/ot_templating
 ln -s /var/opentalent/git/ot_typo3/ot_connect /var/www/typo3/public/typo3conf/ext/ot_connect
 ln -s /var/opentalent/git/ot_typo3/ot_optimizer /var/www/typo3/public/typo3conf/ext/ot_optimizer
 ln -s /var/opentalent/git/ot_typo3/ot_admin /var/www/typo3/public/typo3conf/ext/ot_admin
+ln -s /var/opentalent/git/ot_typo3/ot_stats /var/www/typo3/public/typo3conf/ext/ot_stats
 php composer.phar dumpautoload
 
 # Add custom configuration
-ln -s /var/opentalent/git/ot_typo3/docker/LocalConfiguration.php /var/www/typo3/public/typo3conf/LocalConfiguration.php
+ln -s /var/opentalent/git/ot_typo3/docker/conf/LocalConfiguration.php /var/www/typo3/public/typo3conf/LocalConfiguration.php
+ln -s /var/opentalent/git/ot_typo3/docker/conf/AdditionalConfiguration.php /var/www/typo3/public/typo3conf/AdditionalConfiguration.php
 mkdir -p /var/www/typo3/config
-ln -s /var/opentalent/git/ot_typo3/docker/sites.tar.gz /var/www/typo3/config/sites.tar.gz
+ln -s /var/opentalent/git/ot_typo3/docker/conf/sites.tar.gz /var/www/typo3/config/sites.tar.gz
 tar -xzf /var/www/typo3/config/sites.tar.gz -C /var/www/typo3/config/
 
+# replace the default .htaccess
+rm /var/www/typo3/public/.htaccess
+ln -s /var/opentalent/git/ot_typo3/docker/conf/.htaccess /var/www/typo3/public/.htaccess
+
 # Finalize
-ln -s /var/opentalent/git/ot_typo3/install/cli /var/www/typo3/cli
 chown -R 1000:www-data /var/www/typo3
 chown -R 1000:www-data /var/opentalent/git/ot_typo3
 chmod -R 771 /var/www/typo3