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
3c89d31f
Verified
Commit
3c89d31f
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Almost working version + doc
parent
f82c1976
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Readme
+48
-1
48 additions, 1 deletion
Readme
docker-compose.yml
+3
-3
3 additions, 3 deletions
docker-compose.yml
docker/Dockerfile
+6
-6
6 additions, 6 deletions
docker/Dockerfile
docker/noemie.conf
+14
-0
14 additions, 0 deletions
docker/noemie.conf
with
71 additions
and
10 deletions
Readme
+
48
−
1
View file @
3c89d31f
This is a docker image for running [Pretty Noemi CMS]()
This is a docker image for running [Pretty Noemi CMS](https://framagit.org/framasoft/PrettyNoemieCMS)
## Installation
```bash
cp .env.sample .env
docker-compose up
ln -s /var/lib/docker/volume/prettynoemie_sites/_data/ sites
```
## Add a site
### by copy
```bash
cp sites/framsite sites/mysite.fqdn
```
### From backup
```bash
cd sites
unzip mysite.fqdn.zip
```
### Set the reverse proxy
Adapt this file and add it to `/etc/apache2/sites-available/mysite.conf`
```apache2
<VirtualHost *:80>
ServerName mysite.fqdn
#ProxyVia On
#ProxyRequests On
ProxyPreserveHost on
Header set X-FRAMA-SITE mysite.fqdn
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
CustomLog ${APACHE_LOG_DIR}/mysite.tetras-libre.access.log combined
ErrorLog ${APACHE_LOG_DIR}/mysite-libre.error.log
</VirtualHost>
```
Finaly run `certbot` to use HTTPS
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
3
−
3
View file @
3c89d31f
version
:
'
2'
version
:
"
3.7"
services
:
services
:
front
:
front
:
build
:
./docker
build
:
./docker
volumes
:
volumes
:
-
'
noemie
:/var/www/html/
PrettyNoemieCMS'
-
sites
:/var/www/html/
sites
environment
:
environment
:
restart
:
${RESTART}
restart
:
${RESTART}
PHP_INI_DATE_TIMEZONE
:
'
Europe/Paris'
PHP_INI_DATE_TIMEZONE
:
'
Europe/Paris'
...
@@ -14,4 +14,4 @@ services:
...
@@ -14,4 +14,4 @@ services:
restart
:
${RESTART}
restart
:
${RESTART}
volumes
:
volumes
:
noemie
:
sites
:
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
6
−
6
View file @
3c89d31f
...
@@ -14,16 +14,16 @@ RUN apt-get update && apt-get install -y \
...
@@ -14,16 +14,16 @@ RUN apt-get update && apt-get install -y \
RUN
docker-php-ext-install
-j
$(
nproc
)
gd curl mbstring xml zip
RUN
docker-php-ext-install
-j
$(
nproc
)
gd curl mbstring xml zip
COPY
install_composer.sh /
COPY
install_composer.sh /
COPY
noemie.conf /etc/apache2/sites-available/
RUN
a2dissite 000-default.conf
RUN
a2ensite noemie.conf
RUN
/bin/bash /install_composer.sh
RUN
/bin/bash /install_composer.sh
RUN
rm
/install_composer.sh
RUN
rm
/install_composer.sh
#COPY noemie.conf /etc/apache2/sites-enabled/000-default.conf
WORKDIR
/var/www/
RUN
git clone https://framagit.org/framasoft/PrettyNoemieCMS html
WORKDIR
/var/www/html
WORKDIR
/var/www/html
RUN
git clone https://framagit.org/framasoft/PrettyNoemieCMS
WORKDIR
/var/www/html/PrettyNoemieCMS
RUN
/usr/local/bin/composer.phar
install
RUN
/usr/local/bin/composer.phar
install
RUN
chown
-R
www-data /var/www/html/PrettyNoemieCMS
RUN
chown
-R
www-data /var/www/html/
WORKDIR
/var/www/html
RUN
a2enmod rewrite
RUN
a2enmod rewrite
This diff is collapsed.
Click to expand it.
docker/noemie.conf
0 → 100644
+
14
−
0
View file @
3c89d31f
<
VirtualHost
*:
8000
>
DocumentRoot
/
var
/
www
/
html
ErrorLog
${
APACHE_LOG_DIR
}/
error
.
log
CustomLog
${
APACHE_LOG_DIR
}/
access
.
log
combined
<
Directory
"/var/www/html"
>
Options
-
Indexes
+
FollowSymLinks
+
Includes
AllowOverride
All
Order
allow
,
deny
Allow
from
All
</
Directory
>
</
VirtualHost
>
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