|
vor 5 Jahren | |
---|---|---|
Docker | vor 5 Jahren | |
public_html @ 2987210451 | vor 5 Jahren | |
.env | vor 5 Jahren | |
.gitignore | vor 6 Jahren | |
.gitmodules | vor 6 Jahren | |
LICENSE | vor 6 Jahren | |
README.md | vor 6 Jahren | |
docker-compose.yml | vor 6 Jahren |
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