Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretty Noemie CMS docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tetras-libre
Pretty Noemie CMS docker
Commits
ad4519dd
Verified
Commit
ad4519dd
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Remove bind mount
parent
1d1d57d3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Readme.md
+4
-12
4 additions, 12 deletions
Readme.md
with
4 additions
and
12 deletions
Readme.md
+
4
−
12
View file @
ad4519dd
...
@@ -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 my
first
site.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/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment