Skip to content
Snippets Groups Projects
David Beniamine's avatar
David Beniamine authored
e71568f4
History

This is a docker image for running Pretty Noemi CMS

Installation

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

Add a site

by copy

docker-compose exec front bash
cp sites/framsite sites/mysite.fqdn

From backup

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 (ServerName and ServerAlias) then add it to /etc/apache2/sites-available/mysite.conf :

<VirtualHost *:80>
    ServerName myfirstsite.fqdn
    ServerAlias mysecondsite.fqdn
    ServerAlias mythirdsite.fqdn

    ProxyPreserveHost on

    ProxyPass / http://127.0.0.1:8000/
    ProxyPassReverse / http://127.0.0.1:8000/

    CustomLog ${APACHE_LOG_DIR}/noemie.access.log combined
    ErrorLog ${APACHE_LOG_DIR}/noemie-libre.error.log
</VirtualHost>