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
Tags
No related merge requests found
......@@ -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/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment