Bachir Soussi Chiadmi 194fc828dc updated / improvement | 5 years ago | |
---|---|---|
Docker | 5 years ago | |
public_html @ 2987210451 | 5 years ago | |
.env | 5 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
docker-compose.yml | 5 years ago |
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