From ad4519dd8de5d1d3407011552148248d3782595b Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Tue, 7 Apr 2020 20:13:22 +0200
Subject: [PATCH] Remove bind mount

---
 Readme.md | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/Readme.md b/Readme.md
index 70bfb9f..3e563da 100644
--- a/Readme.md
+++ b/Readme.md
@@ -7,14 +7,6 @@ git clone https://gitlab.tetras-libre.fr/tetras-libre/pretty-noemie-cms-docker
 cd pretty-noemie-cms-docker
 cp .env.sample .env
 docker-compose up
-mount -o bind /var/lib/docker/volume/prettynoemie_sites/_data/ sites
-```
-
-**Note**
-
-To make the bind mount permanent, use a fsta line like :
-```fstab
-/var/lib/docker/volume/prettynoemie_sites/_data/ /path/to/sites none defaults,bind 0 2
 ```
 
 ## Add a site
@@ -22,28 +14,28 @@ To make the bind mount permanent, use a fsta line like :
 ### by copy
 
 ```bash
+docker-compose exec front bash
 cp sites/framsite sites/mysite.fqdn
 ```
 
 ### From backup
 
 ```bash
+docker cp "mysite.fqdn.zip" $(docker-compose ps -q front):/var/www/html/sites/
 cd sites
 unzip mysite.fqdn.zip
 ```
 
 ### Set the reverse proxy 
 
-Adapt this file and add it to `/etc/apache2/sites-available/mysite.conf` (replace all occurences of `mysite` and `mysite.fqdn`
+Adapt this file (`ServerName` and `ServerAlias`) then add it to `/etc/apache2/sites-available/mysite.conf` :
 
 ```apache2
 <VirtualHost *:80>
-    ServerName mysite.fqdn
+    ServerName myfirstsite.fqdn
     ServerAlias mysecondsite.fqdn
     ServerAlias mythirdsite.fqdn
 
-    #ProxyVia On
-    #ProxyRequests On
     ProxyPreserveHost on
 
     ProxyPass / http://127.0.0.1:8000/
-- 
GitLab