|
il y a 5 ans | |
---|---|---|
Docker | il y a 5 ans | |
app @ b893992935 | il y a 5 ans | |
.env | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.gitmodules | il y a 5 ans | |
LICENSE | il y a 5 ans | |
Makefile | il y a 5 ans | |
README.md | il y a 5 ans | |
docker-compose.yml | il y a 5 ans |
muntadas-protocols powered by grav in docker environement (nginx, php:7.3-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-muntadas-protocols.git
add to your /etc/hosts :
127.0.0.1 dev.muntadas-protocols.figli.io
configure your apache/nginx vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
<Virtualhost *:80>
ServerName dev.muntadas-protocols.figli.io
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)
make build
then each time you want to launch the app
make up
make exec_php
run the fixeperms.sh script from the php container
make exec_php
chmod +x fixperms.sh
./fixeperms.sh
You can now visit http://dev.muntadas-protocols.figli.io or simply http://localhost:8882 on your browser