Skip to content
Snippets Groups Projects
Verified Commit ad4519dd authored by David Beniamine's avatar David Beniamine
Browse files

Remove bind mount

parent 1d1d57d3
Branches
No related tags found
No related merge requests found
...@@ -7,14 +7,6 @@ git clone https://gitlab.tetras-libre.fr/tetras-libre/pretty-noemie-cms-docker ...@@ -7,14 +7,6 @@ git clone https://gitlab.tetras-libre.fr/tetras-libre/pretty-noemie-cms-docker
cd pretty-noemie-cms-docker cd pretty-noemie-cms-docker
cp .env.sample .env cp .env.sample .env
docker-compose up 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 ## Add a site
...@@ -22,28 +14,28 @@ To make the bind mount permanent, use a fsta line like : ...@@ -22,28 +14,28 @@ To make the bind mount permanent, use a fsta line like :
### by copy ### by copy
```bash ```bash
docker-compose exec front bash
cp sites/framsite sites/mysite.fqdn cp sites/framsite sites/mysite.fqdn
``` ```
### From backup ### From backup
```bash ```bash
docker cp "mysite.fqdn.zip" $(docker-compose ps -q front):/var/www/html/sites/
cd sites cd sites
unzip mysite.fqdn.zip unzip mysite.fqdn.zip
``` ```
### Set the reverse proxy ### 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 ```apache2
<VirtualHost *:80> <VirtualHost *:80>
ServerName mysite.fqdn ServerName myfirstsite.fqdn
ServerAlias mysecondsite.fqdn ServerAlias mysecondsite.fqdn
ServerAlias mythirdsite.fqdn ServerAlias mythirdsite.fqdn
#ProxyVia On
#ProxyRequests On
ProxyPreserveHost on ProxyPreserveHost on
ProxyPass / http://127.0.0.1:8000/ ProxyPass / http://127.0.0.1:8000/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment