Bachir Soussi Chiadmi 194fc828dc updated / improvement | 5 éve | |
---|---|---|
Docker | 5 éve | |
public_html @ 2987210451 | 5 éve | |
.env | 5 éve | |
.gitignore | 5 éve | |
.gitmodules | 5 éve | |
LICENSE | 5 éve | |
README.md | 5 éve | |
docker-compose.yml | 5 éve |
Figureslibres.cc powered by grav in docker environement (nginx, php:7.0-fpm)
sudo pacman -S docker docker-compose docker-machine
this will clone this repos (main docker environement) and the grav source code
git clone --recursive -o figureslibres.io https://figureslibres.io/gogs/bachir/docker-figureslibres.cc-grav.git
add to your /etc/hosts :
127.0.0.1 dev.figureslibres.cc
configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
<Virtualhost *:80>
ServerName dev.figuresmibres.cc
ProxyPass / http://127.0.0.1:8882/
ProxyPassReverse / http://127.0.0.1:8882/
ProxyRequests Off
</Virtualhost>
launch the docker daemon
sudo systemctl start docker
only before the first run (may take some time)
sudo docker-compose build
then each time you want to launch the app
sudo docker-compose up -d
sudo docker exec -it grav_figureslibres.cc_php_1 bash
from the grav_figureslibres.cc_php_1
run the fixeperms.sh script
sudo docker exec -it grav_figureslibres.cc_php_1 bash
chmod +x fixperms.sh
./fixeperms.sh
You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser After the first run