|
@@ -12,7 +12,7 @@ sudo pacman -S docker docker-compose docker-machine
|
|
|
this will clone this repos (main docker environement) and the edlp drupal 8 source code (without sites/default folder)
|
|
|
|
|
|
```
|
|
|
-git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-popsu-coloque-d8.git
|
|
|
+git clone --recursive -o gogs https://figureslibres.io/gogs/bachir/docker-popsu-coloques.git
|
|
|
```
|
|
|
|
|
|
### setup /sites/default/settings.php
|
|
@@ -23,40 +23,50 @@ git clone --recursive -o figli https://figureslibres.io/gogs/bachir/docker-popsu
|
|
|
get the files from where you have it and rsync it to public_html/sites/default/files/
|
|
|
|
|
|
## Mysql
|
|
|
-Copy your-sql-dump.sql into ./ressources/popsucolloque_d8.sql
|
|
|
+Copy your-sql-dump.sql into ./ressources/popsucolloque21.sql & ./ressources/popsucolloque24.sql
|
|
|
It will be automaticly imported into the mysql container db (only) on the first docker-compose up
|
|
|
|
|
|
## Hosts and reverse proxy
|
|
|
|
|
|
add to your /etc/hosts :
|
|
|
```
|
|
|
-127.0.0.1 dev.popsu-coloque.com
|
|
|
-127.0.0.1 dev.phpmyadmin.popsu-coloque.com
|
|
|
-```
|
|
|
-configure your apache vhosts to add a reverse proxy that will redirect the dev.popsu-coloque.com to our container
|
|
|
-```
|
|
|
-<Virtualhost *:80>
|
|
|
- ServerName dev.popsu-coloque.com
|
|
|
- ProxyPass / http://127.0.0.1:8880/
|
|
|
- ProxyPassReverse / http://127.0.0.1:8880/
|
|
|
- ProxyRequests Off
|
|
|
- ProxyPreserveHost On
|
|
|
- proxy_buffer_size 128k;
|
|
|
- proxy_buffers 4 256k;
|
|
|
- proxy_busy_buffers_size 256k;
|
|
|
-</Virtualhost>
|
|
|
-```
|
|
|
-```
|
|
|
-<Virtualhost *:80>
|
|
|
- ServerName dev.phpmyadmin.popsu-coloque.com
|
|
|
- ProxyPass / http://127.0.0.1:8881/
|
|
|
- ProxyPassReverse / http://127.0.0.1:8881/
|
|
|
- ProxyRequests Off
|
|
|
- ProxyPreserveHost On
|
|
|
- proxy_buffer_size 128k;
|
|
|
- proxy_buffers 4 256k;
|
|
|
- proxy_busy_buffers_size 256k;
|
|
|
-</Virtualhost>
|
|
|
+127.0.0.1 dev.colloque2021.popsu.archi.fr
|
|
|
+127.0.0.1 dev.colloque2024.popsu.archi.fr
|
|
|
+127.0.0.1 dev.phpmyadmin.popsucolloques.fr
|
|
|
+```
|
|
|
+configure your nginx vhosts to add a reverse proxy that will redirect the dev.popsucolloque21.fr and dev.popsucolloque24.fr to our container
|
|
|
+```nginx
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name dev.colloque2021.popsu.archi.fr dev.colloque2024.popsu.archi.fr;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ proxy_pass http://127.0.0.1:8890;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_buffer_size 128k;
|
|
|
+ proxy_buffers 4 256k;
|
|
|
+ proxy_busy_buffers_size 256k;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name dev.phpmyadmin.popsucolloques.fr;
|
|
|
+
|
|
|
+ location / {
|
|
|
+ proxy_pass http://127.0.0.1:8891;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
+ proxy_buffer_size 128k;
|
|
|
+ proxy_buffers 4 256k;
|
|
|
+ proxy_busy_buffers_size 256k;
|
|
|
+ }
|
|
|
+}
|
|
|
```
|
|
|
## Docker
|
|
|
|